Fix docker and ci for Vite.

This commit is contained in:
FireMasterK 2021-12-28 18:56:28 +00:00
parent 247a4371ba
commit ce4be5d217
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
2 changed files with 3 additions and 3 deletions

View File

@ -15,9 +15,9 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v2.5.1 uses: actions/setup-node@v2.5.1
with: with:
cache: 'yarn' cache: "yarn"
- run: yarn install --prefer-offline - run: yarn install --prefer-offline
- run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css - run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
- uses: aquiladev/ipfs-action@v0.1.6 - uses: aquiladev/ipfs-action@v0.1.6
id: ipfs-add id: ipfs-add
with: with:

View File

@ -8,7 +8,7 @@ RUN yarn install --prefer-offline
COPY . . COPY . .
RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/css/*.css RUN yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css
FROM nginx:alpine FROM nginx:alpine