aboutsummaryrefslogtreecommitdiff
path: root/svelte.config.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-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