Remove stuff for the exam grader && improve README

This commit is contained in:
Marco Realacci 2023-01-25 19:00:04 +01:00
parent 0090df033f
commit 6f74aaeaaf
4 changed files with 54 additions and 10 deletions

View file

@ -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": {

View file

@ -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;