Replies: 1 comment
-
|
I've solved the hmr reloding because not accessing to the server via wss://... by adding this vite.config.js options: // https://vitejs.dev/config/
export default defineConfig({
https: true,
server: {
host: true,
port: 3000,
strictPort: true,
hmr: {
port: 443,
}
},
...
})``` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you'd like to request
Cloud IDEs like Gitpod or Github Workspaces will get a big role in the future. I tried out Next.js with Gitpod, but can't make Fast Refresh work. The [recommended solutions] do not work for Next.js (the Next.js dev server does not have those options). I put up a little test project at https://github.com/medihack/gitpod-next (just click on the Gitpod link). The connection to https://3000-plum-jellyfish-uk215sfw.ws-eu03.gitpod.io/_next/webpack-hmr?page=/ fails (504).
Describe the solution you'd like
An example of a setup with Gitpod and working fast refresh.
Describe alternatives you've considered
Not using Cloud IDEs.
Beta Was this translation helpful? Give feedback.
All reactions