Skip to content

Commit

Permalink
Enabled hot reloading
Browse files Browse the repository at this point in the history
References:
Implement Docker With Hot Reloading In Next JS | by Bikash dulal | wesionaryTEAM | Medium
https://medium.com/wesionary-team/impledocker-with-hot-reloading-in-next-js-f3e57fba84ce

Bikash888/nextjs-docker
https://github.com/Bikash888/nextjs-docker

nextjs-docker/next.config.js at main · Bikash888/nextjs-docker
https://github.com/Bikash888/nextjs-docker/blob/main/next.config.js
Hot Reloading not working in Next.js 9 using custom routing, styled components and withApollo example · Issue #16449 · vercel/next.js
vercel/next.js#16449

NextJS Fast Refresh - GeeksforGeeks
https://www.geeksforgeeks.org/nextjs-fast-refresh/

next.config.js: Custom Webpack Config | Next.js
https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config

Hot reloading Next.js with Docker in development | James Chambers
https://jameschambers.co.uk/nextjs-hot-reload-docker-development
https://jameschambers.co.uk/nextjs-hot-reload-docker-development#step-3-update-nextconfigjs

Building and deploying Next.js applications with Docker - YouTube
https://www.youtube.com/watch?v=aNh8iShFXto

Koyeb - How to Dockerize and Deploy a Next.js Application on Koyeb
https://www.koyeb.com/tutorials/how-to-dockerize-and-deploy-a-next-js-application-on-koyeb

How To Connect Docker With Python Flask And ReactJS FrontEnd | Docker Flask React Made Easy| 2021 HD - YouTube
https://www.youtube.com/watch?v=ISCiJmY1g2M

react-flask-postgres-boilerplate-with-docker/docker-compose.yml at master · tomahim/react-flask-postgres-boilerplate-with-docker
https://github.com/tomahim/react-flask-postgres-boilerplate-with-docker/blob/master/docker-compose.yml
  • Loading branch information
ChubaOraka committed Aug 6, 2022
1 parent e43baa6 commit ae81019
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpackDevMiddleware: config => {
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
}

return config
},
}

module.exports = nextConfig

0 comments on commit ae81019

Please sign in to comment.