Comments (2)
The Service Worker can also be generated on the static folder without any issue if served via a root path i.e. in the server.js file:
app.serveStatic(req, res, path.resolve('./static/sw.js'))
It's just a matter of preference why i chose the .next directory
from nextsimplestarter.
I think i'll go with your way. If you have any further issues, feel free to drop it here. Thanks
from nextsimplestarter.
Related Issues (20)
- Background Sync API support HOT 1
- Make delete button accessible
- `Container` in `_app` has been deprecated and should be removed. HOT 2
- Redux Dev Tools doesn't work HOT 1
- An in-range update of eslint-config-react-app is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-react is breaking the build 🚨 HOT 2
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-react is breaking the build 🚨 HOT 1
- An in-range update of react-axe is breaking the build 🚨 HOT 2
- Re-organize our README HOT 3
- Cannot register service worker with minimal configuration on Netlify HOT 3
- text
- static folder has been deprecated. HOT 1
- An in-range update of next is breaking the build 🚨 HOT 1
- An in-range update of snyk is breaking the build 🚨 HOT 1
- Teste
- [FEATURE] : Add support for Tailwind CSS also HOT 1
- NextJS SW registration failed HOT 3
- Retain user login
- Add support for Redux also HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextsimplestarter.