aboutsummaryrefslogtreecommitdiff
path: root/svelte.config.js
diff options
context:
space:
mode:
authorpml68 <tutorialmester@gmail.com>2024-01-16 16:58:24 +0100
committerpml68 <tutorialmester@gmail.com>2024-01-16 16:58:24 +0100
commitf0936d9c8b61121cbdfe51bf310fad90b5b0fa03 (patch)
tree4a7e992395ecbd0c6f918f18e1740a2beaad9862 /svelte.config.js
downloadpml68.dev-f0936d9c8b61121cbdfe51bf310fad90b5b0fa03.tar.gz
Initial commit
This is just a test site for now, will add content soon
Diffstat (limited to 'svelte.config.js')
-rw-r--r--svelte.config.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/svelte.config.js b/svelte.config.js
new file mode 100644
index 0000000..66a5f92
--- /dev/null
+++ b/svelte.config.js
@@ -0,0 +1,23 @@
+import adapter from '@sveltejs/adapter-static'
+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
+import 'dotenv/config'
+const dev = process.argv.includes('dev')
+
+/** @type {import('@sveltejs/kit').Config} */
+const config = {
+ preprocess: vitePreprocess(),
+ kit: {
+ adapter: adapter({
+ pages: 'build',
+ assets: 'build',
+ fallback: undefined,
+ precompress: false,
+ strict: true
+ }),
+ paths: {
+ base: dev ? '' : process.env.BASE_PATH
+ }
+ }
+};
+
+export default config