mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 12:29:18 -05:00
[web] Fix the example command to run the local server instance
This commit is contained in:
parent
abbd02e925
commit
955b9658e9
@ -3,16 +3,14 @@ import { defineConfig } from 'vite'
|
|||||||
import vue from '@vitejs/plugin-vue'
|
import vue from '@vitejs/plugin-vue'
|
||||||
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
|
import vueI18n from '@intlify/unplugin-vue-i18n/vite'
|
||||||
|
|
||||||
// Support for setting the OwnTone server URL as env var VITE_OWNTONE_URL
|
/*
|
||||||
// in development mode.
|
* In development mode, use the VITE_OWNTONE_URL environment variable to set
|
||||||
// E. g. start the DEV server with
|
* the remote OwnTone server URL. For example:
|
||||||
//
|
*
|
||||||
// VITE_OWNTONE_URL=https://owntone.local:3689; npm run serve
|
* export VITE_OWNTONE_URL=http://owntone.local:3689; npm run serve
|
||||||
//
|
*/
|
||||||
// will connect the web interface with a remote OwnTone server.
|
|
||||||
const owntoneUrl = process.env.VITE_OWNTONE_URL ?? 'http://localhost:3689'
|
const owntoneUrl = process.env.VITE_OWNTONE_URL ?? 'http://localhost:3689'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
resolve: { alias: { '@': '/src' } },
|
resolve: { alias: { '@': '/src' } },
|
||||||
plugins: [
|
plugins: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user