diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3ae07f4e..03883e50 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Deploy Live Editor on: push: branches: - - main + - none jobs: build: runs-on: ubuntu-latest diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 00000000..cbd944d3 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[build] + command = "npm run build" + publish = "build/" + functions = "functions/" \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index 56c3bc39..ef8f90b9 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -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
element in src/app.html target: '#svelte'