Skip to content

Commit e070639

Browse files
committed
bug fix
1 parent 25e89e7 commit e070639

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

src/aws-amplify-hosting.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,7 @@ export class AmplifyHosting extends Construct {
6262
},
6363
postBuild: {
6464
commands: [
65-
`ln -s ${appRoot}/server.js .next/standalone/server.js`,
66-
`cp -r public .next/standalone/${appRoot}/public`,
67-
`cp -r .next/static .next/standalone/${appRoot}/.next/static`,
68-
`cp .env .env.production .next/standalone/${appRoot}`,
69-
`ln -s /tmp .next/standalone/${appRoot}/.next/cache`,
65+
'cp .env .env.production .next/standalone/',
7066
],
7167
},
7268
},
@@ -92,9 +88,6 @@ export class AmplifyHosting extends Construct {
9288
});
9389
(this.app.node.defaultChild as cdk.CfnResource).addPropertyOverride('Platform', 'WEB_COMPUTE');
9490

95-
const outputFileTracingRoot = appRoot.split('/').map(x => x = '..').join('/') + '/';
96-
this.app.addEnvironment('NEXT_PRIVATE_OUTPUT_TRACE_ROOT', outputFileTracingRoot);
97-
9891
this.app.addEnvironment('AMPLIFY_MONOREPO_APP_ROOT', appRoot);
9992
this.app.addEnvironment('AMPLIFY_DIFF_DEPLOY', 'false');
10093
this.app.addEnvironment('_LIVE_UPDATES', JSON.stringify(liveUpdates));

test/__snapshots__/main.test.ts.snap

Lines changed: 1 addition & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)