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
uses: actions/setup-node@v2.5.1
with:
cache: 'yarn'
cache: "yarn"
- 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
id: ipfs-add
with:

View file

@ -8,7 +8,7 @@ RUN yarn install --prefer-offline
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