Skip to content

Commit

Permalink
Merge pull request #34 from uclab-potsdam/dev
Browse files Browse the repository at this point in the history
feat base path
  • Loading branch information
sinanatra authored Oct 11, 2023
2 parents ee1c79f + 95e830a commit 3a4b43d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import adapter from '@sveltejs/adapter-static';
import { mdsvex } from 'mdsvex';
import mdsvexConfig from './mdsvex.config.js';
const dev = process.argv.includes('dev');

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand All @@ -13,6 +14,9 @@ const config = {
adapter: adapter({
fallback: 'index.html'
}),
paths: {
base: dev ? '' : process.env.BASE_PATH,
},
prerender: {
crawl: true,
entries: ['/'],
Expand Down

0 comments on commit 3a4b43d

Please sign in to comment.