yjack0000 / nuxt-notion-blog Goto Github PK
View Code? Open in Web Editor NEWThis project is a blog built with Nuxt3 for SSR website and Notion API as a database.
Home Page: https://yjack0000.cerana.tech
License: Apache License 2.0
This project is a blog built with Nuxt3 for SSR website and Notion API as a database.
Home Page: https://yjack0000.cerana.tech
License: Apache License 2.0
Why are you so handsome, so powerful !
Can you please share the table url in notion, seems like there is a slight issue with tables.
Thank you
Currently, Notion API data is fetched from the Notion servers each time a request is made. This can lead to performance problems for applications that frequently need to access Notion API data.
Vercel's tools can be used to cache Notion API data. This can be done by storing Notion API responses on Vercel's Edge servers. This way, when an application needs to access Notion API data, it can fetch the data directly from Vercel's Edge servers, instead of from the Notion servers.
Caching Notion API data can improve the performance of applications because it can reduce the number of requests made to the Notion servers. This can reduce response times and improve overall performance.
在使用 nuxt-img
優化 notion 的圖片時遇到的問題
例如
https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0a572d21-a609-4730-af7e-3cade9dbe359%2FScreenshot_2023-04-30_at_4.18.52_PM.png?table=block&id=ee532b09-ef0b-46bb-a949-60b40f0d047a&cache=v2
後半段的
https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F0a572d21-a609-4730-af7e-3cade9dbe359%2FScreenshot_2023-04-30_at_4.18.52_PM.png?table=block&id=ee532b09-ef0b-46bb-a949-60b40f0d047a&cache=v2
整段會被多 encode 一次變成類似
https://www.notion.so/image/https%253A%252F%252Fs3-us-west-2.amazonaws.com%252Fsecure.notion-static.com%252F0a572d21-a609-4730-af7e-3cade9dbe359%252FScreenshot_2023-04-30_at_4.18.52_PM.png?table=block&id=ee532b09-ef0b-46bb-a949-60b40f0d047a&cache=v2
嘗試過將它拆開後 decode 一次再組裝回去送給 Nuxt Image,但是目前沒用,不確定是我的問題還是 Nuxt Image 的問題。
先暫時放著,之後可能去發 issue 問問看。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.