From c2ac877cad90e56ee91e57afe95aba0dde92898c Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 22 May 2021 23:38:38 +0530 Subject: [PATCH] Try netlify --- .github/workflows/deploy.yml | 2 +- netlify.toml | 4 ++++ svelte.config.js | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 netlify.toml 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'