Try netlify

This commit is contained in:
Sidharth Vinod
2021-05-22 23:38:38 +05:30
parent cfd85ebaa3
commit c2ac877cad
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: Deploy Live Editor
on:
push:
branches:
- main
- none
jobs:
build:
runs-on: ubuntu-latest
+4
View File
@@ -0,0 +1,4 @@
[build]
command = "npm run build"
publish = "build/"
functions = "functions/"
+2 -4
View File
@@ -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'