Closed Gibbu closed 4 years ago
How are you deploying to Netlify? Github link or npm run deploy:netlify
?
Github link
What's your Github link config?
Are you talking about the build settings? If so:
Yup. You need to set your base directory to scripts/netlify
.
It still gets stuck. https://pastebin.com/raw/kCaRVQ9v
Just to clarify this is how it should look, no?
That looks correct and I couldn't find any errors in your log.
What happens if you cd into scripts/netlify
and run npm run build
? Does it hang at the end?
Are you using Typescript by any chance? I might be on to something.
I am not. If you want to check out my current files: https://github.com/Gibbu/Website
I think I finally found the cause.
scripts/base.config.js
, line 71. watch: 'static',
needs to be watch: !production && 'static'
.
Can I ask how you created the project?
Sure, I ran npx @sveltech/routify init
and swapped out the regular rollup-plugin-copy
module with the rollup-plugin-copy-watch
and added the watch property from our conversation from Discord
That explains it. If you add the !production &&
, you should be fine.
Bug description When deploying to Netlify the build process will get stuck on
created dist/sw.js
.package.json
Version Routify 1.9.7 Svelte 3.23.2
Additional information Netlify build log: https://pastebin.com/raw/cbk5DMP3 Project repo: https://github.com/Gibbu/Website