We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23eac9e commit ea5e150Copy full SHA for ea5e150
apps/book-server/src/services/BookDeployService/index.mts
@@ -63,7 +63,11 @@ export class BookDeployService implements Service {
63
// upload to S3
64
const promises = targetFiles.map(async (filePath) => {
65
const body = fs.readFileSync(filePath)
66
- const relativePath = filePath.replace(output, '')
+ let relativePath = filePath.replace(output, '')
67
+ const ext = path.extname(relativePath)
68
+ if (ext === '.html' && !relativePath.includes('index.html')) {
69
+ relativePath = relativePath.replace('.html', '')
70
+ }
71
const contentType = mime.getType(filePath)
72
await this.awsS3.uploadFile({
73
bucketName: this.env.get('bookBucketName'),
0 commit comments