diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-01-16 16:58:24 +0100 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-01-16 16:58:24 +0100 |
| commit | f0936d9c8b61121cbdfe51bf310fad90b5b0fa03 (patch) | |
| tree | 4a7e992395ecbd0c6f918f18e1740a2beaad9862 /svelte.config.js | |
| download | pml68.dev-f0936d9c8b61121cbdfe51bf310fad90b5b0fa03.tar.gz | |
Initial commit
This is just a test site for now, will add content soon
Diffstat (limited to '')
| -rw-r--r-- | svelte.config.js | 23 |
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 |
