Skip to content

Commit

Permalink
fix: deploy redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
cfu288 committed Jan 24, 2024
1 parent 722cf90 commit c09f898
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/app/static/static.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { ServeStaticModule } from '@nestjs/serve-static';
imports: [
ServeStaticModule.forRoot({
rootPath: join(__dirname, '..', 'web'),
serveStaticOptions: {
extensions: ['.json'],
},
}),
],
})
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/providers/SentryInitializer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function useSentryLogging() {
console.log(
`Sentry: ${
sentryClient.getOptions().enabled ? 'Enabling' : 'Disabling'
} reporting`
} reporting`,
);
}
}, []);
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/settings/UserDataSettingsGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
getStorageQuota,
requestPersistentStorage,
} from '../../utils/storagePermissionUtils';
import { Link } from 'react-router-dom';

export type ImportFields = {
backup?: FileList;
Expand Down Expand Up @@ -172,15 +173,15 @@ export function UserDataSettingsGroup() {
/>
<p className="font-bold">Export</p>
</button>
<a
<Link
ref={clickDownloadRef}
id="downloadLink"
download={`mere_export_${new Date().toISOString()}.json`}
href={fileDownloadLink}
className="hidden"
>
hidden download button
</a>
</Link>
</li>
<li className="flex items-center py-4">
<div className="flex flex-1 flex-col">
Expand Down

0 comments on commit c09f898

Please sign in to comment.