ably-labs / nextjs-chat-app Goto Github PK
View Code? Open in Web Editor NEWA chat app built using Ably and Next JS and hosted with Vercel
Home Page: https://next-js-chat-app.vercel.app/
License: Apache License 2.0
A chat app built using Ably and Next JS and hosted with Vercel
Home Page: https://next-js-chat-app.vercel.app/
License: Apache License 2.0
app/layout.js refers to global.css and I got the following error.
https://nextjs.org/docs/messages/module-not-found
⨯ ./app/layout.js:1:0
Module not found: Can't resolve './global.css'1 | import './global.css'
2 |
3 | export const metadata = {
4 | title: 'Next.js',
I noticed that I always got the same nonce.
https://faqs.ably.com/40105-nonce-value-replayed
Workaround:
I could suppress the error by adding the revalidation.
export const revalidate = 0;
return Response.json(tokenRequestData, {
status: 200,
headers: {
'Cache-Control': 'no-store',
'CDN-Cache-Control': 'no-store',
'Vercel-CDN-Cache-Control': 'no-store'
}
});
I got another error when I made it the edge function
export const runtime = 'edge';
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.