Skip to content

Commit

Permalink
Merge pull request #432 from Thorium-Sim/develop
Browse files Browse the repository at this point in the history
Fix some broken stuff when building for production.
  • Loading branch information
alexanderson1993 authored Oct 11, 2022
2 parents 5f22edf + 8da356b commit 61e57d9
Show file tree
Hide file tree
Showing 5 changed files with 847 additions and 654 deletions.
1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@types/three": "^0.143.0",
"@vitejs/plugin-react": "^2.1.0",
"@vitejs/plugin-react-refresh": "^1.3.6",
"autoprefixer": "^10.4.8",
"daisyui": "^2.22.0",
Expand Down
1 change: 0 additions & 1 deletion client/src/context/ThoriumAccountContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
useMemo,
useState,
} from "react";
import * as React from "react";
import {useLocalStorage} from "../hooks/useLocalStorage";

type ThoriumAccountContextProps = {
Expand Down
10 changes: 5 additions & 5 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import {defineConfig} from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import tsconfigPaths from "vite-tsconfig-paths";
import reactJsx from "vite-react-jsx";
import react from "@vitejs/plugin-react";
import releasesPlugin from "./vite-plugins/releases";
import mdPlugin, {Mode} from "vite-plugin-markdown";

// https://vitejs.dev/config/
export default defineConfig(async () => {
return {
plugins: [
reactRefresh(),
tsconfigPaths(),
reactJsx(),
react(),
releasesPlugin(),
mdPlugin({mode: [Mode.HTML, Mode.TOC]}),
],
Expand All @@ -20,7 +18,9 @@ export default defineConfig(async () => {
emptyOutDir: false,
commonjsOptions: {include: []},
},
optimizeDeps: {disabled: false},
optimizeDeps: {
disabled: false,
},
define: {
"process.env.THORIUMSIM_CLIENT_ID": `"01FM3JNPNP3GFAXYR22Y7F9XAJ"`,
"process.env.THORIUMSIM_URL": `"https://thoriumsim.com"`,
Expand Down
Loading

0 comments on commit 61e57d9

Please sign in to comment.