mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-02-01 22:47:40 +00:00
In dev environment, this PR allows to proxy to whatever backend without CORS issue by specifying the backend URL in `.env.local` variable. I believe this would ease contribution by frontend developpers that would only have to run the unstable docker to work on the frontend without need for all the go toolchain to build the whole backend to have a cors enabled backend. Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/3069 Co-authored-by: Marc <marc88@free.fr> Co-committed-by: Marc <marc88@free.fr>
29 lines
977 B
HTML
29 lines
977 B
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||
<title>Vikunja</title>
|
||
<meta name="description" content="Vikunja (/vɪˈkuːnjə/) - The to-do app to organize your life.">
|
||
<meta name="theme-color" content="#1973ff"/>
|
||
|
||
<link rel="icon" href="/favicon.ico">
|
||
<link rel="apple-touch-icon" href="/images/icons/apple-touch-icon-180x180.png"/>
|
||
<!--__vite-plugin-inject-preload__-->
|
||
</head>
|
||
<body>
|
||
<noscript>
|
||
<strong>We're sorry but Vikunja doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||
</noscript>
|
||
<div id="app"></div>
|
||
<script type="module" src="/src/main.ts"></script>
|
||
<script>
|
||
//
|
||
// This variable points the frontend to the api.
|
||
// It has to be the full url, including the last /api/v1 part and port.
|
||
// You can change this if your api is not reachable on the same port as the frontend.
|
||
window.API_URL = '/api/v1'
|
||
</script>
|
||
</body>
|
||
</html>
|