Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

custom .serverless folder for different stages #309

Open
diegopamio opened this issue Mar 7, 2020 · 3 comments
Open

custom .serverless folder for different stages #309

diegopamio opened this issue Mar 7, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@diegopamio
Copy link

serverless-next.js/packages/serverless-nextjs-component/examples/multiple-instance-environment/ example shows how to deal with multiple environments, but for those of us that commit the .serverless folder to avoid generating a cloudfront distribution on each push, this would be an issue.

Is there any way to tell serverless-nextjs the name of the .serverless folder, so we can commit one for each environment generated instead of maintaining two versions, one on each branch forever?

@teemuniiranen
Copy link

teemuniiranen commented Mar 18, 2020

This would solve creation of new cloudfront distribution and allow centralized building and deployment for multiple environments without different directories and duplicated serverless.yml files.

@uclaeamsavino
Copy link

uclaeamsavino commented Mar 26, 2020

Sorry I'm new to serverless-next, trying to evaluate it to see if it will work for us. Does the .serverless file change constantly as you're developing/deploying?

If so, and you keep different .serverless folders for each stage, then it seems like you'd have to manually deploy locally (run serverless) to each stage to make sure that the .serverless file gets updated for that stage.

Well maybe it wouldn't matter as long as you're not creating new resources in AWS.

@stale
Copy link

stale bot commented Jun 24, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants