This commit is contained in:
parent
fe205531e0
commit
39e877bbe9
@ -38,9 +38,10 @@ export default defineNuxtConfig({
|
||||
strictPort: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:4000',
|
||||
// target: 'http://localhost:4000',
|
||||
target: 'https://api.koptilnya.xyz',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, ''),
|
||||
rewrite: path => path.replace(/^\/api/, '/chad'),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { ToastEventBus } from 'primevue'
|
||||
|
||||
const instance = $fetch.create({
|
||||
baseURL: process.env.API_BASE_URL || '/api',
|
||||
baseURL: process.env.API_BASE_URL || 'https://api.koptilnya.xyz/chad',
|
||||
credentials: 'include',
|
||||
onResponseError({ response }) {
|
||||
if (!import.meta.client)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
||||
"productName": "chad",
|
||||
"version": "0.2.1",
|
||||
"version": "0.2.2",
|
||||
"identifier": "xyz.koptilnya.chad",
|
||||
"build": {
|
||||
"frontendDist": "../.output/public",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user