From 80ec48aeb4cd11a088cbded4edcac664673ba31c Mon Sep 17 00:00:00 2001 From: Thomas Neil James Shadwell Date: Wed, 31 May 2023 17:11:53 +0900 Subject: [PATCH] Fix asset paths for pulumi. --- ts/pulumi/im/shadwell/thomas/public/index.ts | 4 +--- ts/pulumi/me/zemn/staging/index.ts | 5 ++--- 2 files changed, 3 insertions(+), 6 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..11046c0d0a 100644 --- a/ts/pulumi/me/zemn/staging/index.ts +++ b/ts/pulumi/me/zemn/staging/index.ts @@ -1,7 +1,6 @@ import * as aws from '@pulumi/aws'; import * as staticwebsite from '@pulumi/aws-static-website'; import * as pulumi from '@pulumi/pulumi'; -import * as asset from '@pulumi/pulumi/asset'; import * as zone from 'ts/pulumi/me/zemn/zone'; const domainName = pulumi.interpolate`staging.${zone.zone.name}`; @@ -49,8 +48,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,