Skip to content

Commit

Permalink
Fix asset paths for pulumi.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemnmez committed May 31, 2023
1 parent bdc64f6 commit d9ab2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 1 addition & 4 deletions ts/pulumi/im/shadwell/thomas/public/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import * as staticwebsite from '@pulumi/aws-static-website';
import * as asset from '@pulumi/pulumi/asset';
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,
Expand Down
5 changes: 2 additions & 3 deletions ts/pulumi/me/zemn/staging/index.ts
Original file line number Diff line number Diff line change
@@ -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}`;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit d9ab2e6

Please sign in to comment.