Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Axolotle committed Dec 19, 2024
1 parent 3604275 commit 63f4cfb
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,24 @@ export default defineConfig(({ mode }) => {
return {
...config,
server: {
...(env.VITE_LOCAL === 'true' ? {} : {
port: 8080,
host: env.VITE_IP,
https: {
// Use already created cert from yunohost instance
key: fs.readFileSync('/etc/yunohost/certs/yunohost.org/key.pem'),
cert: fs.readFileSync('/etc/yunohost/certs/yunohost.org/crt.pem'),
},
fs: {
// Needed for special ynh-dev context where node_modules is symlinked
allow: [
'/ynh-dev/yunohost-admin/app',
'/var/cache/ynh-dev/yunohost-admin/node_modules',
],
},
}),
...(env.VITE_LOCAL === 'true'
? {}
: {
port: 8080,
host: env.VITE_IP,
https: {
// Use already created cert from yunohost instance
key: fs.readFileSync('/etc/yunohost/certs/yunohost.org/key.pem'),
cert: fs.readFileSync('/etc/yunohost/certs/yunohost.org/crt.pem'),
},
fs: {
// Needed for special ynh-dev context where node_modules is symlinked
allow: [
'/ynh-dev/yunohost-admin/app',
'/var/cache/ynh-dev/yunohost-admin/node_modules',
],
},
}),
proxy: {
'/yunohost': {
target: `https://${env.VITE_IP}`,
Expand Down

0 comments on commit 63f4cfb

Please sign in to comment.