Skip to content

Commit

Permalink
fix: nuxt image
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe committed Apr 12, 2024
1 parent e506aa8 commit 3c21eec
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /app
RUN npm install -g pnpm

# Copy the package files
COPY package.json pnpm-lock.yaml ./
COPY package.json pnpm-lock.yaml .npmrc ./

# Install dependencies using pnpm
RUN pnpm install --frozen-lockfile
Expand Down
10 changes: 5 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export default defineNuxtConfig({
format: ['webp'],
quality: 80,
domains: [
// 'p3-juejin.byteimg.com',
// 'sns-webpic-qc.xhscdn.com',
// 'cdn.dribbble.com',
// 'picx.zhimg.com',
// 'img.zcool.cn',
'p3-juejin.byteimg.com',
'sns-webpic-qc.xhscdn.com',
'cdn.dribbble.com',
'picx.zhimg.com',
'img.zcool.cn',
],
},
googleFonts: {
Expand Down
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@trpc/server": "^10.45.2",
"@vitest/coverage-v8": "^1.4.0",
"consola": "^3.2.3",
"sharp": "^0.33.3",
"trpc-nuxt": "^0.10.21",
"zod": "^3.22.4"
},
Expand Down Expand Up @@ -53,5 +54,16 @@
"vite-svg-loader": "^5.1.0",
"vitest": "^1.4.0",
"vue-tsc": "^1.8.27"
},
"pnpm": {
"supportedArchitectures": {
"os": [
"win32",
"current"
],
"cpu": [
"x64"
]
}
}
}
}

Check failure on line 69 in package.json

View workflow job for this annotation

GitHub Actions / testCodebase

Newline required at end of file but not found
246 changes: 241 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c21eec

Please sign in to comment.