Skip to content
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

Merged
merged 17 commits into from
Mar 14, 2024
Merged

content: write url-shortener #327

merged 17 commits into from
Mar 14, 2024

Conversation

Barbapapazes
Copy link
Member

@Barbapapazes Barbapapazes commented Mar 11, 2024

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation, readme, or JSdoc annotations)
  • 📰 Content (a new article or a change in the content folder)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

https://content-url-shortener.unjs.pages.dev/learn/articles/url-shortener-with-nitro-on-cloudflare-pages

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@Barbapapazes Barbapapazes added the content A change in the content folder label Mar 11, 2024
@Barbapapazes Barbapapazes self-assigned this Mar 11, 2024
Copy link
Contributor

nuxt-studio bot commented Mar 11, 2024

Live Preview ready!

Name Edit Preview Latest Commit
unjs-website Edit on Studio ↗︎ View Live Preview a05b69c

import { hash } from 'ohash'
import { Helmet, h, renderSSR } from 'nano-jsx' // the `h` is very important here

export default defineEventHandler(async (event) => {
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can always ask.

@Barbapapazes Barbapapazes merged commit 81fb98c into main Mar 14, 2024
8 checks passed
@Barbapapazes Barbapapazes deleted the content/url-shortener branch March 14, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content A change in the content folder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants