Skip to content

Commit f650343

Browse files
committed
Fix lint
1 parent 0f12607 commit f650343

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

frontend/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import "@fontsource/roboto/400.css";
33
import "@fontsource/roboto/500.css";
44
import "@fontsource/roboto/700.css";
55
import CssBaseline from "@mui/material/CssBaseline";
6+
import * as Sentry from "@sentry/react";
67
import React from "react";
78
import ReactDOM from "react-dom/client";
8-
import * as Sentry from "@sentry/react";
9+
10+
import App from "./App.tsx";
911

1012
Sentry.init({
1113
dsn: "https://[email protected]/4506498051407872",
@@ -23,8 +25,6 @@ Sentry.init({
2325
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
2426
});
2527

26-
import App from "./App.tsx";
27-
2828
ReactDOM.createRoot(document.getElementById("root")!).render(
2929
<React.StrictMode>
3030
<CssBaseline enableColorScheme={true} />

frontend/vite.config.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ import { defineConfig } from "vite";
44

55
// https://vitejs.dev/config/
66
export default defineConfig({
7-
plugins: [react(), sentryVitePlugin({
8-
org: "pythoncoderas",
9-
project: "wayback-archiver-server-2-frontend"
10-
})],
7+
plugins: [
8+
react(),
9+
sentryVitePlugin({
10+
org: "pythoncoderas",
11+
project: "wayback-archiver-server-2-frontend",
12+
}),
13+
],
1114

1215
base: "/app/",
1316

1417
build: {
15-
sourcemap: true
16-
}
17-
});
18+
sourcemap: true,
19+
},
20+
});

src/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
import datetime
3+
import os
34
import re
45
from contextlib import asynccontextmanager
56
from os import environ
@@ -383,6 +384,7 @@ async def lifespan(_: FastAPI):
383384

384385

385386
app = FastAPI(lifespan=lifespan)
387+
os.makedirs("frontend/dist", exist_ok=True)
386388
static_files = StaticFiles(directory="frontend/dist", html=True)
387389
app.mount("/app", static_files, name="frontend")
388390
app.add_middleware(

0 commit comments

Comments
 (0)