Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
netvs-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scc-net
netvs
netvs-core
Commits
398593a1
Commit
398593a1
authored
2 months ago
by
Janis Streib
Browse files
Options
Downloads
Patches
Plain Diff
ADD: dev: correct proxy settings
parent
e1e44ec2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#406255
passed with warnings
2 months ago
Stage: build
Stage: lint
Stage: deploy
Stage: e2e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vite.config.ts
+63
-41
63 additions, 41 deletions
vite.config.ts
with
63 additions
and
41 deletions
vite.config.ts
+
63
−
41
View file @
398593a1
import
{
fileURLToPath
,
URL
}
from
'
node:url
'
import
{
fileURLToPath
,
URL
}
from
'
node:url
'
import
vue
from
'
@vitejs/plugin-vue
'
import
colors
from
'
picocolors
'
...
...
@@ -6,50 +6,72 @@ import UnoCSS from 'unocss/vite'
import
AutoImport
from
'
unplugin-auto-import/vite
'
import
TurboConsole
from
'
unplugin-turbo-console/vite
'
import
Components
from
'
unplugin-vue-components/vite
'
import
{
defineConfig
}
from
'
vite
'
import
{
defineConfig
}
from
'
vite
'
import
nightwatchPlugin
from
'
vite-plugin-nightwatch
'
import
vueDevTools
from
'
vite-plugin-vue-devtools
'
// https://vite.dev/config/
export
default
defineConfig
({
plugins
:
[
vue
(),
vueDevTools
(),
nightwatchPlugin
(),
UnoCSS
(),
Components
({
dts
:
true
,
}),
AutoImport
({
imports
:
[
'
vue
'
,
'
vue-router
'
,
'
vue-i18n
'
,
'
vitest
'
,
'
pinia
'
,
'
@vueuse/core
'
,
],
vueTemplate
:
true
,
vueDirectives
:
true
,
}),
TurboConsole
({
silent
:
true
,
disablePassLogs
:
true
,
}),
{
name
:
'
nextvs-startup-logo
'
,
configureServer
:
(
server
)
=>
{
const
{
printUrls
}
=
server
server
.
printUrls
=
()
=>
{
console
.
log
(
` 🚀
${
colors
.
bold
(
colors
.
red
(
'
NEXTVS
'
))}
${
colors
.
dim
(
'
up and running
'
)}
`
)
printUrls
()
}
},
},
],
resolve
:
{
alias
:
{
'
@
'
:
fileURLToPath
(
new
URL
(
'
./src
'
,
import
.
meta
.
url
)),
plugins
:
[
vue
(),
vueDevTools
(),
nightwatchPlugin
(),
UnoCSS
(),
Components
({
dts
:
true
,
}),
AutoImport
({
imports
:
[
'
vue
'
,
'
vue-router
'
,
'
vue-i18n
'
,
'
vitest
'
,
'
pinia
'
,
'
@vueuse/core
'
,
],
vueTemplate
:
true
,
vueDirectives
:
true
,
}),
TurboConsole
({
silent
:
true
,
disablePassLogs
:
true
,
}),
{
name
:
'
nextvs-startup-logo
'
,
configureServer
:
(
server
)
=>
{
const
{
printUrls
}
=
server
server
.
printUrls
=
()
=>
{
console
.
log
(
` 🚀
${
colors
.
bold
(
colors
.
red
(
'
NEXTVS
'
))}
${
colors
.
dim
(
'
up and running
'
)}
`
)
printUrls
()
}
},
},
],
resolve
:
{
alias
:
{
'
@
'
:
fileURLToPath
(
new
URL
(
'
./src
'
,
import
.
meta
.
url
)),
},
},
},
server
:
{
proxy
:
{
'
^/api/openapi.json
'
:
{
target
:
'
https://netvs-devel.scc.kit.edu
'
,
secure
:
true
,
changeOrigin
:
true
,
followRedirects
:
true
,
},
'
^/api
'
:
{
target
:
'
https://netvs-devel.scc.kit.edu
'
,
secure
:
true
,
changeOrigin
:
true
,
followRedirects
:
true
,
},
'
^/hub
'
:
{
target
:
'
https://netvs-devel.scc.kit.edu
'
,
secure
:
true
,
changeOrigin
:
true
,
followRedirects
:
true
,
},
}
}
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment