Corrected use of .env
This commit is contained in:
parent
b0cd9a4f94
commit
ceb65421eb
2 changed files with 3 additions and 3 deletions
2
.env
2
.env
|
|
@ -1 +1 @@
|
||||||
BACKEND=http://localhost:4320/api/
|
VITE_BACKEND=http://localhost:4320/api/
|
||||||
|
|
@ -3,7 +3,7 @@ import { Button, Page, Padding, Display, Row, Logo, Column, Box } from '../../co
|
||||||
import { onMount } from 'solid-js'
|
import { onMount } from 'solid-js'
|
||||||
import { ofetch } from 'ofetch'
|
import { ofetch } from 'ofetch'
|
||||||
|
|
||||||
const API = 'http://localhost:4320/api/'
|
const API = import.meta.env.VITE_BACKEND
|
||||||
let assessorsNameList: string[]
|
let assessorsNameList: string[]
|
||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
|
|
@ -33,7 +33,7 @@ export default () => {
|
||||||
</Row>
|
</Row>
|
||||||
|
|
||||||
<Row content="left" gap={1}>
|
<Row content="left" gap={1}>
|
||||||
<Button label="Login" edges="curved" design="bo-link" to='/login'/>
|
<Button label="Login" edges="curved" design="bo-link" to="/login" />
|
||||||
<Button label="Register" edges="curved" design="bo-primary" to="/register" />
|
<Button label="Register" edges="curved" design="bo-primary" to="/register" />
|
||||||
</Row>
|
</Row>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue