Skip to content

Keep seeing this issue "Firefox can’t establish a connection to the server at wss://hasura-4ajcb5oh.nhost.app/v1/graphql. client.js:446 The connection to wss://hasura-4ajcb5oh.nhost.app/v1/graphql was interrupted while the page was loading."

Notifications You must be signed in to change notification settings

RyanMilb/nhost-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preact example

This is a fully working example of Next.js 9.3 running on Preact instead of React.

This reduces the base JavaScript weight of pages to 21kB.

🔭 In the future, this can be even smaller with some additional Webpack optimizations.

How to use

Clone this repo and run npm install:

git clone https://github.com/developit/nextjs-preact-demo.git
cd nextjs-preact-demo
npm install

There are three commands available:

# start a development server:
npm run dev

# create a production build:
npm run build

# start a production server:
npm start

How does it work?

The example takes advantage of npm/yarn aliases, which essentially allow installing preact/compat at node_modules/react.

Here's how this example repo was set up:

About

Keep seeing this issue "Firefox can’t establish a connection to the server at wss://hasura-4ajcb5oh.nhost.app/v1/graphql. client.js:446 The connection to wss://hasura-4ajcb5oh.nhost.app/v1/graphql was interrupted while the page was loading."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •