You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
all instances of "export default " get replaced by "return " even if the "export default " occurs within a string (ie: not javascript that gets executed):
next-on-pages environment related information
Description
all instances of "export default " get replaced by "return " even if the "export default " occurs within a string (ie: not javascript that gets executed):
next-on-pages/packages/next-on-pages/src/buildApplication/processVercelFunctions/dedupeEdgeFunctions.ts
Line 312 in 12080f6
Seems like
Reproduction
Pretty easy to replicate:
What gets uploaded to cloudflare ends up being "LOREM return IPSUM"
Pages Deployment Method
None
Pages Deployment ID
No response
Additional Information
The best workaround I've found is to do string concatenation with values wrapped in promises.
It's tedious but some layer in the pipeline can do constant folding which thwarted more straightforward solutions.
Would you like to help?
The text was updated successfully, but these errors were encountered: