this post was submitted on 10 Aug 2023
8 points (90.0% liked)

Web Development

3440 readers
12 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

What I want to do:
Deploy brochure site(s) with minimal (or no) cost.

Stack:
Nuxt, Sanity, Cloudflare Pages.

Problem:
$0.00 challenge (maybe I just don't want to pay)

Requirements:

  • Trim trailing slash on all routes
  • Server-side form sanitation/validation (optional)

Solution 1: Nitro server...
No problem with route middleware, I just don't know this will translate to function/worker usage. Can someone even DoS my site and exhaust 100k allowance? Is it 1 per request? Will crazy convoluted validation logic effect credit used?

Solution 2: Static generation...
I don't know how to use _redirect to trim trailing slash on all routes. The docs do not show any example using wildcard (splat) follow by slash.

Senpai of the Edge, please enlighten me.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here