Skip to content

Commit

Permalink
fix the probs
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Oct 11, 2024
1 parent c794909 commit 03aaa4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const App = () => {
left: 0,
width: '100%',
height: '100%',
backgroundImage: 'url(/bg.jpg)',
backgroundImage: 'url(./bg.jpg)',
backgroundSize: 'cover',
backgroundPosition: 'center',
zIndex: -1000,
Expand Down
34 changes: 4 additions & 30 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,8 @@
/// <reference types="vitest" />
/// <reference types="vite/client" />

import { resolve } from 'node:path'

import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'

export default defineConfig(async () => ({
plugins: [react()],
// https://vitejs.dev/config/
export default defineConfig({
base: '/RubyLive/',
define: { 'import.meta.env.APP_VERSION': `"${process.env.npm_package_version}"` },
clearScreen: false,
server: { port: 1420, strictPort: true },
envPrefix: ['VITE_'],
resolve: {
alias: [
{ find: '@', replacement: resolve(__dirname, 'src') },
{ find: '~', replacement: resolve(__dirname, 'public') },
],
},
build: {
emptyOutDir: true,
chunkSizeWarningLimit: 1200,
reportCompressedSize: false,
outDir: resolve(__dirname, 'dist'),
},
test: {
globals: true,
environment: 'jsdom',
cache: { dir: './node_modules/.vitest' },
include: ['./**/*.{test,spec}.{ts,tsx}'],
},
}))
plugins: [react()],
})

0 comments on commit 03aaa4f

Please sign in to comment.