Spaces:
Sleeping
Sleeping
pranav8tripathi@gmail.com commited on
Commit ·
5d0ef8c
1
Parent(s): 7b43468
initr
Browse files- vite.config.ts +1 -1
vite.config.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { defineConfig } from 'vite'
|
|
| 2 |
import react from '@vitejs/plugin-react'
|
| 3 |
import path from 'path'
|
| 4 |
|
| 5 |
-
// https://vitejs.dev/config/
|
| 6 |
export default defineConfig({
|
| 7 |
plugins: [react()],
|
| 8 |
resolve: {
|
|
@@ -24,6 +23,7 @@ export default defineConfig({
|
|
| 24 |
host: true,
|
| 25 |
port: 7860,
|
| 26 |
strictPort: true,
|
|
|
|
| 27 |
headers: {
|
| 28 |
'Access-Control-Allow-Origin': '*',
|
| 29 |
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
|
|
|
|
| 2 |
import react from '@vitejs/plugin-react'
|
| 3 |
import path from 'path'
|
| 4 |
|
|
|
|
| 5 |
export default defineConfig({
|
| 6 |
plugins: [react()],
|
| 7 |
resolve: {
|
|
|
|
| 23 |
host: true,
|
| 24 |
port: 7860,
|
| 25 |
strictPort: true,
|
| 26 |
+
allowedHosts: ['pranav8tripathi-chopfresh.hf.space'], // ✅ Add this line
|
| 27 |
headers: {
|
| 28 |
'Access-Control-Allow-Origin': '*',
|
| 29 |
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, PATCH, OPTIONS',
|