build: build ssr by default

This commit is contained in:
MrTimscampi 2021-01-26 15:36:15 +01:00
parent 64fecb343f
commit f055d838fb
5 changed files with 19 additions and 19 deletions

View File

@ -22,7 +22,7 @@ jobs:
displayName: "Install Dependencies"
condition: ne(variables.CACHE_RESTORED, 'true')
- script: "yarn build:ssr --production --standalone"
- script: "yarn build --production --standalone"
displayName: "Build"
- task: PublishPipelineArtifact@1
@ -54,7 +54,7 @@ jobs:
displayName: "Install Dependencies"
condition: ne(variables.CACHE_RESTORED, 'true')
- script: "yarn build"
- script: "yarn build:static"
displayName: "Build"
- task: PublishPipelineArtifact@1

View File

@ -12,7 +12,7 @@ COPY . .
# Build SSR app for production in standalone mode
RUN yarn build:ssr --production --standalone
RUN yarn build --production --standalone
# Build final image
FROM node:14-alpine

View File

@ -16,7 +16,7 @@ RUN yarn install
COPY . .
# Build static site
RUN yarn build
RUN yarn build:static
# Deploy built distribution to nginx
FROM nginx:alpine

View File

@ -65,19 +65,19 @@ Jellyfin >=10.7.0
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
# server with hot reload at localhost:3000
$ yarn dev
# server with hot reload and server-side rendering at localhost:3000
$ yarn dev:ssr
# serve with hot reload in static mode at localhost:3000
$ yarn dev:static
# build for production
# you will need a web server to host the client
# build for production and launch server
$ yarn build
$ yarn start
# build for production with server-side rendering and launch server
$ yarn build:ssr
$ yarn start:ssr
# build for production in static mode
# you will need a web server to host the client
$ yarn build:static
```
@ -90,7 +90,7 @@ When using the SSR version of the client, you can run the client in standalone m
$ yarn install
# build for production in standalone mode, with server-side rendering
$ yarn build:ssr --standalone
$ yarn build --standalone
# move the server and required files to a dedicated directory
$ mkdir -p /opt/jellyfin-vue

View File

@ -4,12 +4,12 @@
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "nuxt-ts",
"dev:ssr": "NUXT_SSR=true nuxt-ts",
"build": "nuxt-ts build",
"build:ssr": "NUXT_SSR=true nuxt-ts build",
"start": "nuxt-ts start",
"start:ssr": "NUXT_SSR=true nuxt-ts start",
"dev": "NUXT_SSR=1 nuxt-ts",
"dev:static": "nuxt-ts",
"build": "NUXT_SSR=1 nuxt-ts build",
"build:static": "nuxt-ts build",
"start": "NUXT_SSR=1 nuxt-ts start",
"start:static": "nuxt-ts start",
"generate": "nuxt-ts generate",
"lint:js": "eslint --ext .ts,.js,.vue .",
"lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",