question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dynamic catch-all routes not supported in Google App Engine

See original GitHub issue

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 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:closed
  • Created 4 years ago
  • Reactions:16
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
jeroenoomsNLcommented, Mar 24, 2020

Same problem here! It’s blocking our project at the moment.

4reactions
B1rchcommented, Mar 24, 2020

I’m running into this problem right now as well. Any known workarounds would be greatly appreciated

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found