mirror of
https://github.com/JonasunderscoreJones/blog.jonasjones.dev.git
synced 2025-10-22 21:29:18 +02:00
please be fixed now
This commit is contained in:
parent
7d3ae84925
commit
9a10df78c8
3 changed files with 23 additions and 12 deletions
8
package-lock.json
generated
8
package-lock.json
generated
|
@ -8,6 +8,7 @@
|
|||
"name": "blog.jonasjones.dev",
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"svelte-kit": "^1.2.0",
|
||||
"svelte-spa-router": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -2525,6 +2526,13 @@
|
|||
"svelte": "^3.19.0 || ^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/svelte-kit": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/svelte-kit/-/svelte-kit-1.2.0.tgz",
|
||||
"integrity": "sha512-RRaOHBhpDv4g2v9tcq8iNw055Pt0MlLps6JVA7/40f4KAbtztXSI4T6MZYbHRirO708urfAAMx6Qow+tQfCHug==",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/svelte-preprocess": {
|
||||
"version": "5.1.4",
|
||||
"resolved": "https://registry.npmjs.org/svelte-preprocess/-/svelte-preprocess-5.1.4.tgz",
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"build": "svelte-kit build",
|
||||
"preview": "svelte-kit preview",
|
||||
"dev": "vite dev --host",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
|
||||
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
|
||||
},
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
import preprocess from 'svelte-preprocess';
|
||||
import cloudflare from '@sveltejs/adapter-cloudflare';
|
||||
import adapter from '@sveltejs/adapter-cloudflare';
|
||||
|
||||
export default {
|
||||
preprocess: preprocess(),
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
kit: {
|
||||
adapter: cloudflare(),
|
||||
target: '#svelte' // Ensure this matches your target in `src/app.html`
|
||||
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
|
||||
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
|
||||
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
|
||||
adapter: adapter()
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue