-
Notifications
You must be signed in to change notification settings - Fork 29.4k
Closed
Labels
UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).
Description
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.
gmosx, loujonker, jeroenoomsNL, florisboersma, wieringen and 6 moregmosx, jeroenoomsNL, wieringen, xe4me and arkarkark
Metadata
Metadata
Assignees
Labels
UpstreamRelated to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).Related to using Next.js with a third-party dependency. (e.g., React, UI/icon libraries, etc.).