Try netlify
This commit is contained in:
@@ -2,7 +2,7 @@ name: Deploy Live Editor
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- none
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[build]
|
||||
command = "npm run build"
|
||||
publish = "build/"
|
||||
functions = "functions/"
|
||||
+2
-4
@@ -1,5 +1,5 @@
|
||||
import preprocess from 'svelte-preprocess';
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import adapter from '@sveltejs/adapter-netlify';
|
||||
|
||||
/** @type {import('@sveltejs/kit').Config} */
|
||||
const config = {
|
||||
@@ -12,9 +12,7 @@ const config = {
|
||||
],
|
||||
|
||||
kit: {
|
||||
adapter: adapter({
|
||||
pages: 'docs'
|
||||
}),
|
||||
adapter: adapter(),
|
||||
ssr: false,
|
||||
// hydrate the <div id="svelte"> element in src/app.html
|
||||
target: '#svelte'
|
||||
|
||||
Reference in New Issue
Block a user