Skip to content

Commit 0227bb2

Browse files
Deploy to /thenextgen (#180)
1 parent 564e203 commit 0227bb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deployment.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const {
22
createDeploymentDetailsFromOptions,
33
} = require('@microbit-foundation/website-deploy-aws-config');
4+
const posixPath = require('path/posix');
45

56
const { s3Config } = createDeploymentDetailsFromOptions({
67
production: {
@@ -20,6 +21,8 @@ const { s3Config } = createDeploymentDetailsFromOptions({
2021
module.exports = {
2122
deploymentDir: './dist',
2223
...s3Config,
24+
// We deploy to a fixed path for the nextgen version
25+
bucketPrefix: posixPath.join(s3Config.bucketPrefix || '', 'thenextgen'),
2326
region: 'eu-west-1',
2427
removeNonexistentObjects: true,
2528
enableS3StaticWebsiteHosting: true,

0 commit comments

Comments
 (0)