Skip to content

Instantly share code, notes, and snippets.

@DaneWeber
Created October 14, 2022 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaneWeber/0a1ecfa989c4a550ff5a0fc454b317d3 to your computer and use it in GitHub Desktop.
Save DaneWeber/0a1ecfa989c4a550ff5a0fc454b317d3 to your computer and use it in GitHub Desktop.
Files for running a Yarn app on AWS Elastic Beanstalk in 2022
# next.js
/.next/
/out/
# EB
/source-bundles/*.zip
#!/bin/bash
corepack enable
yarn
yarn build
# This file belongs in .platform/hooks/predeploy/
{
"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"
}
}
web: yarn start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment