universse / gatsby-plugin-zeit-now Goto Github PK
View Code? Open in Web Editor NEWEnhancing Zeit Now zero-config deployments.
Home Page: https://npm.im/gatsby-plugin-zeit-now
Enhancing Zeit Now zero-config deployments.
Home Page: https://npm.im/gatsby-plugin-zeit-now
After adding this plugin tawk(online support chat) integration is breaking. Widget works in dev mode, local build, but after deploying to Zeit it disappears.
Hello,
Right now, I'm using now.json
to keep a list of redirects:
{
"redirects": [
{
"source": "/docs",
"destination": "/docs/api/getting-started/overview"
}
]
}
Could be possible do the same but using the plugin interface? That's what I'm suggesting:
plugins: [
{
resolve: 'gatsby-plugin-zeit-now',
options: {
redirects: [{
source: "/docs",
destination: "/docs/api/getting-started/overview"
}]
}
}
]
Hi, I'm using your plugin together with the gatsby-plugin-intl
one and I notice a fake 404 response when I refresh a page from a language route like the homepage /en/
.
I saw in the created __now_routes_g4t5bY.json
json file that these extra rules are added:
{
"src": "/en/.*",
"dest": "/en/404/"
},
{
"src": "/it/.*",
"dest": "/it/404/"
}
from the client side routes generation... causing the above issue.
How can I avoid to add them?
thanks
PS: I can't find how your file __now_routes_g4t5bY.json
is read by now... is it a naming convention?
Vercel docs indicate that routes
are now considered legacy, and by my testing Gatsby splat redirects don't work with routes
regex.
I believe switching to redirects/rewrites will fix splats too.
When building with latest version of Gatsby I see this warning:
warn Plugin gatsby-plugin-zeit-now is not compatible with your gatsby version 3.7.1 - It requires gatsby@^2.0.0
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.