-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
content: write url-shortener #327
Conversation
✅ Live Preview ready!
|
import { hash } from 'ohash' | ||
import { Helmet, h, renderSSR } from 'nano-jsx' // the `h` is very important here | ||
|
||
export default defineEventHandler(async (event) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip: We can type event handler for validation by extracting z.object
and use it's return type in <>
generic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not understanding this point and the usage behind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can always ask.
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
content/learn/articles/2024-03-11-url-shortener-with-nitro-on-cloudflare-pages.md
Outdated
Show resolved
Hide resolved
…cloudflare-pages.md Co-authored-by: Pooya Parsa <pooya@pi0.io>
🔗 Linked issue
❓ Type of change
📚 Description
https://content-url-shortener.unjs.pages.dev/learn/articles/url-shortener-with-nitro-on-cloudflare-pages
📝 Checklist