Skip to content

Commit

Permalink
added version
Browse files Browse the repository at this point in the history
  • Loading branch information
Xatta-Trone committed Jun 30, 2023
1 parent f874888 commit 5c9bff8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/routes/(authenticated)/profile/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import { onMount } from "svelte";
import { fade } from "svelte/transition";
import type { PageServerData } from "./$types";
import { version } from '$app/environment';
let userData: UserInterface | null;
Expand All @@ -32,6 +33,8 @@
userData = response.data;
});
}
version
</script>

<svelte:head>
Expand Down Expand Up @@ -66,4 +69,7 @@
</Card>
</div>
{/if}
<P class="mt-3" weight="light" color="text-gray-500 dark:text-gray-400">
Website Version: {version}
</P>
</main>
7 changes: 6 additions & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import preprocess from "svelte-preprocess";
/** @format */

import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from "@sveltejs/kit/vite";
import preprocess from "svelte-preprocess";

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -18,6 +20,9 @@ const config = {
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: adapter(),
version: {
name: Date.now().toString(),
},
},
};

Expand Down

0 comments on commit 5c9bff8

Please sign in to comment.