Skip to content
Merged

wip #2199

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/build-upload-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,26 @@ jobs:

- name: Build Target
run: |
mkdir -p target/_next
rm -rf target .deploy-bundle
mkdir -p target/_next .deploy-bundle/.next

cp -r .next/standalone/. .deploy-bundle/
cp -r .next/static target/_next/
zip -r package.zip . -x '*.git*' 'node_modules/*' 'target/*'
mv package.zip target/
cp -r .next/static .deploy-bundle/.next/
cp -r public .deploy-bundle/
cp Procfile .deploy-bundle/
cp -r .ebextensions .deploy-bundle/

for file in BUILD_ID PUBLIC_RUNTIME.json ASSETS_FROM_S3; do
if [ -f ".next/$file" ]; then
cp ".next/$file" ".deploy-bundle/.next/$file"
fi
done

(
cd .deploy-bundle
zip -r ../target/package.zip .
)

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down
12 changes: 0 additions & 12 deletions .platform/hooks/prebuild/10-pnpm-runtime-install.sh

This file was deleted.

1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: PORT=3001 HOSTNAME=0.0.0.0 node server.js
1 change: 1 addition & 0 deletions config/nextConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function sharedConfig(
): NextConfig {
return {
assetPrefix,
output: "standalone",
reactCompiler: true,
reactStrictMode: false,
compress: true,
Expand Down
Loading