Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
2,777 additions
and
9,029 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
REACT_APP_SERVER_URL="" | ||
REACT_APP_FIREBASE_ENABLE=false | ||
VITE_SERVER_URL="" | ||
VITE_FIREBASE_ENABLE=false | ||
|
||
# if REACT_APP_FIREBASE_ENABLE is set to false, don't have to set other firebase configs | ||
REACT_APP_FIREBASE_API_KEY="" | ||
REACT_APP_FIREBASE_AUTH_DOMAIN="" | ||
REACT_APP_FIREBASE_DATABASE_URL="" | ||
REACT_APP_FIREBASE_PROJECT_ID="" | ||
REACT_APP_FIREBASE_STORAGE_BUCKET="" | ||
REACT_APP_FIREBASE_MESSAGING_SENDER_ID="" | ||
REACT_APP_FIREBASE_APP_ID="" | ||
REACT_APP_FIREBASE_MEASUREMENT_ID="" | ||
# if VITE_FIREBASE_ENABLE is set to false, don't have to set other firebase configs | ||
VITE_FIREBASE_API_KEY="" | ||
VITE_FIREBASE_AUTH_DOMAIN="" | ||
VITE_FIREBASE_DATABASE_URL="" | ||
VITE_FIREBASE_PROJECT_ID="" | ||
VITE_FIREBASE_STORAGE_BUCKET="" | ||
VITE_FIREBASE_MESSAGING_SENDER_ID="" | ||
VITE_FIREBASE_APP_ID="" | ||
VITE_FIREBASE_MEASUREMENT_ID="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
interface ImportMetaEnv { | ||
readonly VITE_SERVER_URL: string; | ||
readonly VITE_FIREBASE_ENABLE: boolean; | ||
readonly VITE_FIREBASE_API_KEY: string; | ||
readonly VITE_FIREBASE_AUTH_DOMAIN: string; | ||
readonly VITE_FIREBASE_DATABASE_URL: string; | ||
readonly VITE_FIREBASE_PROJECT_ID: string; | ||
readonly VITE_FIREBASE_STORAGE_BUCKET: string; | ||
readonly VITE_FIREBASE_MESSAGING_SENDER_ID: string; | ||
readonly VITE_FIREBASE_APP_ID: string; | ||
readonly VITE_FIREBASE_MEASUREMENT_ID: string; | ||
} | ||
|
||
interface ImportMeta { | ||
readonly env: ImportMetaEnv; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import axios from "axios"; | ||
|
||
const instance = axios.create({ | ||
baseURL: process.env.REACT_APP_SERVER_URL, | ||
baseURL: import.meta.env.VITE_SERVER_URL, | ||
}); | ||
|
||
export default instance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="vite/client" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import react from "@vitejs/plugin-react"; | ||
import { defineConfig } from "vite"; | ||
import svgrPlugin from "vite-plugin-svgr"; | ||
import viteTsconfigPaths from "vite-tsconfig-paths"; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react(), viteTsconfigPaths(), svgrPlugin()], | ||
build: { | ||
outDir: "build", | ||
}, | ||
}); |
Oops, something went wrong.