diff --git a/package.json b/package.json index 2b48fc7..0fc8f76 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "type": "module", "scripts": { "dev": "vite", - "build": "tsc && vite build --base=./", - "preview": "tsc && vite build --base=./ && vite preview" + "build": "tsc && vite build", + "preview": "tsc && vite build && vite preview" }, "keywords": [], "author": "Orion Reed", @@ -33,4 +33,4 @@ "vite-plugin-top-level-await": "^1.3.1", "vite-plugin-wasm": "^3.2.2" } -} +} \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 16e1695..487d682 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ viteStaticCopy({ targets: [ { - src: 'src/posts/!(*.md)', // Copy all files except .md files + src: 'src/posts/**/*', dest: 'posts' } ] @@ -24,6 +24,7 @@ export default defineConfig({ build: { sourcemap: true, }, + base: '/', publicDir: 'src/public', resolve: { alias: {