Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix asset paths for pulumi. #3179

Merged
merged 1 commit into from
May 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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