mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-05 12:22:35 +02:00
Remove stuff for the exam grader && improve README
This commit is contained in:
parent
0090df033f
commit
6f74aaeaaf
4 changed files with 54 additions and 10 deletions
|
@ -3,11 +3,10 @@
|
|||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"dev-backend": "vite --mode development-backend",
|
||||
"dev-extern-backend": "vite --mode developement-external",
|
||||
"build-dev": "vite build --mode development",
|
||||
"build-prod": "vite build --mode production",
|
||||
"build-embed": "vite build --mode production --base=/dashboard/",
|
||||
"build-embed-host": "vite build --mode embedded --base=/dashboard/",
|
||||
"preview": "vite preview --port 4173"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
@ -13,7 +13,7 @@ export default defineConfig(({command, mode, ssrBuild}) => {
|
|||
}
|
||||
},
|
||||
};
|
||||
if (command === 'serve' && mode !== 'development-backend') {
|
||||
if (command === 'serve' && mode !== 'developement-external') {
|
||||
ret.define = {
|
||||
"__API_URL__": JSON.stringify("http://localhost:3000"),
|
||||
};
|
||||
|
@ -21,13 +21,9 @@ export default defineConfig(({command, mode, ssrBuild}) => {
|
|||
ret.define = {
|
||||
"__API_URL__": JSON.stringify("/"),
|
||||
};
|
||||
} else if (mode === 'development-backend') {
|
||||
ret.define = {
|
||||
"__API_URL__": JSON.stringify("https://wasaphoto.marcorealacci.me"),
|
||||
};
|
||||
} else {
|
||||
ret.define = {
|
||||
"__API_URL__": JSON.stringify("http://localhost:3000"),
|
||||
"__API_URL__": JSON.stringify("<your API URL>"),
|
||||
};
|
||||
}
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue