diff --git a/.claude/launch.json b/.claude/launch.json new file mode 100644 index 0000000..40b3f5f --- /dev/null +++ b/.claude/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.0.1", + "configurations": [ + { + "name": "game", + "runtimeExecutable": "sh", + "runtimeArgs": ["-c", "npx vite build && npx vite preview --port 4173 --strictPort"], + "port": 4173 + } + ] +} diff --git a/vite.config.js b/vite.config.js index 5e9c3a4..ffe9681 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,5 +2,12 @@ import {defineConfig} from 'vite'; export default defineConfig({ // Relative assets also load under a GitHub Pages repository path. - base: './' + base: './', + server: { + host: true, + allowedHosts: [ + 'robotmarkets.ir', + 'www.robotmarkets.ir', + ], + }, });