Replies: 1 comment 1 reply
-
This is expected, you can't access build artifacts in this way. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to write a plugin (based on this code from serverless-next.js) to generate (serverless) handler code for AWS Lambda@Edge.
This plugin needs to read from
serverless
target-specific files, in particular from theprerender-manifest.json
manifest file.However, these files seem not yet available during the webpack execution. Does anyone know how/when these can be accessed?
To give a rough idea, usage should look like:
For this, I created the following
NextLambdaEdgePlugin
webpack plugin:This prints:
What I need during plugin execution is:
The
serverless
target-specific files are present afternext build
but not yet during the execution of the plugin. Is there any chance I can access them from the plugin?Beta Was this translation helpful? Give feedback.
All reactions