parent
e3ce61a4a3
commit
25349c33e3
2 changed files with 13 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { marked } from 'marked';
|
import { marked } from 'marked';
|
||||||
import DOMPurify from 'dompurify';
|
import DOMPurify from 'dompurify';
|
||||||
|
|
||||||
const API_URL = 'http://localhost:3000/api';
|
const API_URL = '/api';
|
||||||
// These should ideally be environment-specific
|
// These should ideally be environment-specific
|
||||||
const AUTH_CONFIG = {
|
const AUTH_CONFIG = {
|
||||||
issuer: 'https://idm.flegr.me/application/o/bot/',
|
issuer: 'https://idm.flegr.me/application/o/bot/',
|
||||||
|
|
|
||||||
12
frontend/vite.config.js
Normal file
12
frontend/vite.config.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { defineConfig } from 'vite';
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
server: {
|
||||||
|
proxy: {
|
||||||
|
'/api': {
|
||||||
|
target: 'http://localhost:3000',
|
||||||
|
changeOrigin: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue