Created
October 14, 2022 21:19
-
-
Save DaneWeber/0a1ecfa989c4a550ff5a0fc454b317d3 to your computer and use it in GitHub Desktop.
Files for running a Yarn app on AWS Elastic Beanstalk in 2022
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# next.js | |
/.next/ | |
/out/ | |
# EB | |
/source-bundles/*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
corepack enable | |
yarn | |
yarn build | |
# This file belongs in .platform/hooks/predeploy/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "yarn-on-beanstalk", | |
"version": "0.1.0", | |
"private": true, | |
"scripts": { | |
"dev": "next dev", | |
"build": "next build", | |
"zip": "zip source-bundles/yob.zip -r * .[^.]* -x source-bundles/* -x .git/*", | |
"start": "next start -p 8080", | |
"lint": "next lint" | |
}, | |
"dependencies": { | |
"next": "12.3.1", | |
"react": "18.2.0", | |
"react-dom": "18.2.0" | |
}, | |
"devDependencies": { | |
"eslint": "8.25.0", | |
"eslint-config-next": "12.3.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: yarn start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment