Dynamic catch-all routes not supported in Google App Engine
See original GitHub issueIssue with filename-name causing deploy error in Google App Engine
Describe the bug
I’ve had a nextJS app running in the Google App Engine enviroment for a while. Works splendid and fast - however, I added a dynamic route and now I am unable to deploy due to the filename being unsupported (due to the 3 dots).
Error from the Gcloud CLI:
ERROR: (gcloud.app.deploy) INVALID_ARGUMENT: Filename cannot contain '.', '..', '\r', start with '-', '_ah/', or '\n': pages/[...slug]/index.js.
One fix could be using underscore or similar instead, like “[___slug]”
To Reproduce
Deploy the app to Google App Engine using any boilerplate configuration for app.yaml with a dynamic catch all route. Use below example and add a catch-all page.
https://github.com/superbmeteor/nextjs-gae-demo
Expected behavior
Should deploy successfully.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:16
- Comments:19 (2 by maintainers)
Top Results From Across the Web
Dynamic catch-all routes not supported in Google App ...
Issue with filename-name causing deploy error in Google App Engine. Describe the bug. I've had a nextJS app running in the Google App...
Read more >dispatch.yaml Configuration File - Python 2
An app can have only one dispatch.yaml file, and the routing rules in that file apply ... URLs defined with the HTTPS "...
Read more >React JS routers doesn't work
I have deployed a compiled ReactJS app to the App engine but, routes are not working other than the root "/" route which...
Read more >App engine URL not found on server when there is a dot in ...
I am using GCP App engine to host my Vue application. And in this application, I have a dynamic route defined as /imp/:id/:email/:type...
Read more >HTTP route components (proto)
Envoy supports routing on HTTP method via header matching. ... We do not recommend setting up a stat prefix for every application endpoint....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Same problem here! It’s blocking our project at the moment.
I’m running into this problem right now as well. Any known workarounds would be greatly appreciated