-
-
Notifications
You must be signed in to change notification settings - Fork 456
Fix #214 Fully decouple next build from component #215
Conversation
- Removed `next build` - Updated README with changes - Added missing `inputs` to README - Clarified the use of `nextConfigDir` - Modified `deploy` step
…c resources folder lives
|
@danielcondemarin I added a new input Right now it is setup so |
…of appending to it. I think this is clearer to configure.
|
I modified this so that instead of merging the two values the |
|
@danielcondemarin What is the status here. |
|
@jlaramie Sorry it has taken me a while to look at this. Could you expand on why you need a custom |
|
@danielcondemarin Yeah so I started doing this with my other NextJS based apps as a way to seperate some of the dev directories (.next, node_modules, etc) from the source itself. This is a breakdown of my directory structure My The reason why nextStaticDir needs to exist is the fact the next.js allows you to configure the location of your It is kind of an edge case but if anyone calls Here is the exact |
|
I just spend a bunch of time rewriting this component, only to find this beautiful PR that's already done! I just tested this out with the following file structure: and these contents of my myNextApplication:
component: "/path/to/local/instance/of/serverless-nextjs-component"
inputs:
nextConfigDir: "./client"and the following npm and when I ran |
|
Thanks @n8jadams I"ve been using this since I made the PR and have not had any problems. |
|
@danielcondemarin If we aren't going to decouple the build then I'd like a way to pass additional ENVs to the build. As I've progressed the projects that are using this library, I've now run into needing access to serverless variables. Currently I solve this by creating my own custom component that gets fed the variables and does the NextJS builds. The outputs from the custom component get passed into the I suggest something like this:
Here is a mock sample of the default configuration Benefits
Sorry for the rant but I"m just trying to figure out what will get me out of this fork and back into master. I'm going to create a pull request for this. |
|
214 build override #259 |
next buildinputsto READMEnextConfigDirdeploystep