joysofcode/sveltekit-markdown-blog

404 page not found

Closed this issue · 1 comments

Just cloned the repo after my code not working, and found out the same error. Pages don't load, for some reason I get error 404.

Found the solution!!
First:
npm i vite-plugin-dynamic-import -D

Then change the vite.config to something like this:


import { sveltekit } from '@sveltejs/kit/vite'
import dynamicImport from 'vite-plugin-dynamic-import'

const config = {
	plugins: [sveltekit(), dynamicImport()]
}

export default config