forked from noxious/client
Added dot env support
This commit is contained in:
parent
b4050bee01
commit
31ce0a8264
5
.env.example
Normal file
5
.env.example
Normal file
@ -0,0 +1,5 @@
|
||||
VITE_NAME=New Quest
|
||||
VITE_DEVELOPMENT=true
|
||||
VITE_SERVER_ENDPOINT=http://localhost:4000
|
||||
VITE_TILE_SIZE_X=64
|
||||
VITE_TILE_SIZE_Y=32
|
@ -1,12 +1,9 @@
|
||||
const dev: boolean = false
|
||||
|
||||
export default {
|
||||
name: 'New Quest',
|
||||
development: dev,
|
||||
server_endpoint: dev ? 'http://localhost:4000' : 'https://nq-server.cr-a.directonline.io',
|
||||
tile_size: { x: 64, y: 32, z: 1 }
|
||||
name: import.meta.env.VITE_NAME,
|
||||
development: import.meta.env.VITE_DEVELOPMENT === 'true',
|
||||
server_endpoint: import.meta.env.VITE_SERVER_ENDPOINT,
|
||||
tile_size: {
|
||||
x: Number(import.meta.env.VITE_TILE_SIZE_X),
|
||||
y: Number(import.meta.env.VITE_TILE_SIZE_Y),
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @TODO: Implement .env like server has
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user