Skip to content

Commit

Permalink
Fix docs distribution root object
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Oct 24, 2023
1 parent e4d0884 commit 34d3344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 2 additions & 8 deletions infrastructure/cdk/src/providers/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,12 @@ export class DocsStack extends cdk.Stack {

const distribution = new cloudfront.Distribution(this, config.getFullStackResourceName(this.name, 'distribution'), {
certificate: distributionCertificate,
defaultRootObject: 'index.html',
defaultRootObject: 'introduction/what-is-casimir.html',
errorResponses: [
{
httpStatus: 403,
responseHttpStatus: 200,
responsePagePath: '/index.html',
ttl: cdk.Duration.minutes(30)
},
{
httpStatus: 404,
responseHttpStatus: 200,
responsePagePath: '/index.html',
responsePagePath: '/404.html',
ttl: cdk.Duration.minutes(30)
}
],
Expand Down
4 changes: 1 addition & 3 deletions services/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"private": true,
"main": "src/index.ts",
"scripts": {
"compile": "hardhat compile",
"build": "",
"dev": "npx esno -r dotenv/config scripts/dev.ts",
"test": "npm run test:unit",
"test:unit": "hardhat test test/unit/*.spec.js",
"functions-simulate-javascript": "node scripts/simulateFunctionsJavaScript.js",
"functions-gen-keys": "node scripts/generateKeypair.js"
},
Expand Down

0 comments on commit 34d3344

Please sign in to comment.