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 { ofetch } from 'ofetch'
|
||||
|
||||
const API = 'http://localhost:4320/api/'
|
||||
const API = import.meta.env.VITE_BACKEND
|
||||
let assessorsNameList: string[]
|
||||
|
||||
export default () => {
|
||||
|
|
@ -33,7 +33,7 @@ export default () => {
|
|||
</Row>
|
||||
|
||||
<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" />
|
||||
</Row>
|
||||
</Row>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue