Skip to content

Instantly share code, notes, and snippets.

@DaneWeber
Created October 14, 2022 21:19
Embed
What would you like to do?
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