From c5cf4a782f191c0a8c85f641b734bbdf19e34142 Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Wed, 31 May 2023 16:38:39 +0900 Subject: [PATCH] Fix asset paths for pulumi. --- ts/pulumi/im/shadwell/thomas/public/index.ts | 4 +--- ts/pulumi/me/zemn/staging/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ts/pulumi/im/shadwell/thomas/public/index.ts b/ts/pulumi/im/shadwell/thomas/public/index.ts index 2dd0742cb2..59aad1a98d 100644 --- a/ts/pulumi/im/shadwell/thomas/public/index.ts +++ b/ts/pulumi/im/shadwell/thomas/public/index.ts @@ -4,9 +4,7 @@ import * as cert from 'ts/pulumi/im/shadwell/cert'; export const site = new staticwebsite.Website('thomas.shadwell.im', { withCDN: true, - indexHTML: new asset.FileAsset( - 'ts/pulumi/im/shadwell/thomas/public/index.html' - ).path, + indexHTML: 'index.html', sitePath: 'ts/pulumi/im/shadwell/thomas/public', targetDomain: 'thomas.shadwell.im', certificateARN: cert.arn, diff --git a/ts/pulumi/me/zemn/staging/index.ts b/ts/pulumi/me/zemn/staging/index.ts index 5411fbd129..d0c8c71f30 100644 --- a/ts/pulumi/me/zemn/staging/index.ts +++ b/ts/pulumi/me/zemn/staging/index.ts @@ -49,8 +49,8 @@ export const arn = validation.certificateArn; export const site = new staticwebsite.Website('staging.zemn.me', { withCDN: true, - indexHTML: new asset.FileAsset('project/zemn.me/next/out/index.html').path, - error404: new asset.FileAsset('project/zemn.me/next/out/404.html').path, + indexHTML: 'index.html', + error404: '404.html', sitePath: 'project/zemn.me/next/out', targetDomain: 'staging.zemn.me', certificateARN: arn,