Skip to content

Commit 0307a55

Browse files
committed
fix vercel deployment
1 parent aa39795 commit 0307a55

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed

frontend/src/routes/Inquiry.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Inquiry() {
1616
<div
1717
data-scroll-section
1818
id="main-container"
19-
className="text-white dark:text-black bg-[#18181B] dark:bg-[#f3f3f3]"
19+
className="dark:text-white text-black dark:bg-[#18181B] bg-[#f3f3f3]"
2020
>
2121
<Helmet>
2222
<title>LuminAI - Inquiry</title>

frontend/src/routes/Staff.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function Staff() {
108108
<div
109109
data-scroll-section
110110
id="main-container"
111-
className="text-white dark:text-black bg-[#18181B] dark:bg-[#f3f3f3]"
111+
className="text-black dark:text-white dark:bg-[#18181B] bg-[#f3f3f3]"
112112
>
113113
<Helmet>
114114
<title>LuminAI - Staff</title>
@@ -122,7 +122,7 @@ function Staff() {
122122
<div style={{ animation: "textPopIn 0.7s ease-in-out" }}>
123123
<div
124124
key={index}
125-
className="bg-white bg-opacity-80 p-6 rounded-lg text-center relative group"
125+
className="bg-white dark:bg-zinc-900 bg-opacity-80 p-6 rounded-lg text-center relative group"
126126
data-aos="fade-up"
127127
>
128128
<div className="w-24 h-24 mx-auto mb-4 relative">
@@ -140,7 +140,7 @@ function Staff() {
140140
</div>
141141

142142
<h2 className="text-2xl font-bold ">{member.name}</h2>
143-
<div className="transform absolute inset-0 duration-300 transition hover:scale-105 rounded-md bg-white bg-opacity-90 p-6 flex flex-col justify-center items-center opacity-0 group-hover:opacity-100 ">
143+
<div className="transform absolute inset-0 duration-300 transition hover:scale-105 rounded-md bg-white dark:bg-zinc-900 bg-opacity-90 p-6 flex flex-col justify-center items-center opacity-0 group-hover:opacity-100 ">
144144
<p
145145
className="text-xl font-sans"
146146
style={{ fontWeight: "500" }}

frontend/src/routes/Syllabus.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function Syllabus() {
2020
<div
2121
data-scroll-section
2222
id="main-container"
23-
className="text-white dark:text-black bg-[#18181B] dark:bg-[#f3f3f3]"
23+
className="text-black dark:text-white dark:bg-[#18181B] bg-[#f3f3f3]"
2424
>
2525
<Helmet>
2626
<title>LuminAI - Syllabus</title>

frontend/tsconfig.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,17 @@
5353
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
5454
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5555
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
56-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
57-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
56+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
57+
"inlineSourceMap": false, /* Include sourcemap files inside the emitted JavaScript. */
5858
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
59-
// "outDir": "./", /* Specify an output folder for all emitted files. */
59+
"outDir": "./dist", /* Specify an output folder for all emitted files. */
6060
// "removeComments": true, /* Disable emitting comments. */
6161
// "noEmit": true, /* Disable emitting files from a compilation. */
6262
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
6363
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
6464
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
6565
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
66+
"inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
6767
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
6868
// "newLine": "crlf", /* Set the newline character for emitting files. */
6969
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */

frontend/vite.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react";
33
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
44
import path from "path";
5+
import { SourceMap } from "module";
56

67
export default defineConfig({
78
plugins: [react(), TanStackRouterVite()],
9+
build: {
10+
sourcemap: true,
11+
},
812
resolve: {
913
alias: {
1014
"@": path.resolve(__dirname, "src"),

vercel.json

-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
{
22
"version": 2,
3-
"builds": [
4-
{
5-
"src": "frontend/package.json",
6-
"use": "@vercel/static-build",
7-
"config": {
8-
"distDir": "frontend/dist"
9-
}
10-
}
11-
],
123
"routes": [
134
{
145
"src": "/(.*)",

0 commit comments

Comments
 (0)