🚀 Ready to netifly

This commit is contained in:
LittleSheep 2024-06-08 20:00:43 +08:00
parent a27a514819
commit 58826ee96f
5 changed files with 15 additions and 6 deletions

6
.idea/vcs.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

BIN
bun.lockb

Binary file not shown.

3
netifly.toml Normal file
View File

@ -0,0 +1,3 @@
[build]
command = "npm run build"
publish = "build"

View File

@ -28,6 +28,7 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-netlify": "^4.2.0",
"@sveltejs/enhanced-img": "^0.2.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/package": "^2.0.0",

View File

@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-netlify';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
@ -8,11 +8,10 @@ const config = {
preprocess: vitePreprocess(),
kit: {
// 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()
},
adapter: adapter({
edge: true
})
}
};
export default config;