Skip to content

Commit

Permalink
fix: fix image service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsang4 committed Dec 10, 2023
1 parent 0ca2092 commit 073342c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { defineConfig, squooshImageService } from "astro/config"
import { defineConfig } from "astro/config"
import { defineConfig, squooshImageService } from "astro/config"
import tailwind from "@astrojs/tailwind"
import react from "@astrojs/react"
import { remarkToc } from "./lib/remark-toc"
Expand All @@ -11,6 +11,9 @@ import mdx from "@astrojs/mdx"
// https://astro.build/config
export default defineConfig({
site: "https://jtsang.me/",
image: {
service: squooshImageService(),
},
integrations: [
mdx(),
tailwind({
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.32.6",
"ts-dedent": "^2.2.1"
"ts-dedent": "^2.2.0"
},
"trustedDependencies": [
"sharp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ vi /etc/ssh/sshd_config

找到如下几项后进行配置:

```
```bash
PubkeyAuthentication yes # 配置可以用公钥对应的密钥登录
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 # 配置授权公钥的位置
PasswordAuthentication no # 配置不能使用密码登录
Expand Down

0 comments on commit 073342c

Please sign in to comment.