https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • c

    cproetti

    01/15/2021, 2:48 AM
    No. Has KV Storare, not SQL
  • c

    cproetti

    01/15/2021, 2:48 AM
    But you can rethink they way you interact with data in order to use KV effectively.
  • c

    cproetti

    01/15/2021, 2:51 AM
    Some data will require SQL but most likely not the case for you.
  • s

    shak360

    01/15/2021, 2:52 AM
    great thank you : ) you've been very helpful
  • c

    cproetti

    01/15/2021, 2:52 AM
    What is your site?
  • t

    TiltMeSenpai

    01/15/2021, 2:52 AM
    wait so when you're running
    wrangler dev
    , does your local code get ran when someone else visits your site?
  • a

    albert-zhao

    01/15/2021, 2:53 AM
    Hello! Glad you’re trying out the platform. If you want to see some projects/apps built on Workers: https://workers.cloudflare.com/built-with
  • a

    advaith

    01/15/2021, 2:55 AM
    i was using a cloudflare tunnel to expose the port on localhost to the internet so yes
  • a

    advaith

    01/15/2021, 2:55 AM
    https://developers.cloudflare.com/argo-tunnel/learning/trycloudflare
  • t

    TiltMeSenpai

    01/15/2021, 2:55 AM
    oh I see
  • t

    TiltMeSenpai

    01/15/2021, 2:55 AM
    both wrangler dev and a cloudflare tunnel, ok
  • a

    advaith

    01/15/2021, 2:56 AM
    yeah
  • s

    shak360

    01/15/2021, 2:56 AM
    i wanted to build a simlpe flashcard app you could study with friends in realtime, I was originally using a Phoenix webserver with GraphQL but one of my friends wants to write frontend in NextJS and we were exploring other options, cloudflare service workers for static sites was one of them
  • c

    cproetti

    01/15/2021, 2:58 AM
    Sounds pretty simple. Why not just save some time and write it from scratch rather than dealing with all these libraries/frameworks?
  • s

    shak360

    01/15/2021, 3:00 AM
    Yea a lot of our time has been spent in frankenstein-ing different libraries and frameworks together haha, so we might go that route
  • c

    cproetti

    01/15/2021, 3:02 AM
    You'll be surprised how much faster it is to just write with vanilla JS than as you say "Frankenstein-ing" these into your needs.
  • c

    cproetti

    01/15/2021, 3:16 AM
    An even easier option would be to just hold up flash cards to your web cam in Zoom 😆 , PM me if you want to talk further about it.
  • a

    advaith

    01/15/2021, 3:17 AM
    talk further about the easier option?
  • s

    Sabatoor

    01/15/2021, 5:03 AM
    HeyHey, I uploaded my static site (gatsby made) to workers with wranger. No problems at all, however, I'm unsure if how to go about adding a sitemap or htaccess
  • s

    Sabatoor

    01/15/2021, 5:03 AM
    My concern is that adding a general .htacces with redirects won't work on workers?
  • a

    advaith

    01/15/2021, 5:09 AM
    yeah, .htaccess is only for apache afaik
  • a

    advaith

    01/15/2021, 5:09 AM
    youd have to do the redirect code in your worker js
  • a

    advaith

    01/15/2021, 5:11 AM
    https://developers.cloudflare.com/workers/platform/sites/start-from-worker
  • a

    advaith

    01/15/2021, 5:11 AM
    this might help
  • t

    Tiger 🐆

    01/15/2021, 5:49 AM
    Happy Friday friends 💙
  • t

    Tiger 🐆

    01/15/2021, 5:49 AM
    👋
  • a

    AlesVaupotic

    01/15/2021, 5:56 AM
    O, yes! Updated @cloudflare/kv-asset-handler to "0.1.0" from "~0.0.11" and rebuilt. Works as expected. Thank you for pointing out the possible culprit!
  • h

    haneefmubarak

    01/15/2021, 6:16 AM
    While it's still in a closed beta at this point, you can replace a lot of the normal usecases for a database server when using #773219443911819284, which amongst other things gives you access to a high performance transactional key-value store to persist your data to
  • s

    shak360

    01/15/2021, 6:18 AM
    and are durable objects something you can make requests to in a service worker, and serve them to a site?
  • m

    macedonian

    01/15/2021, 12:20 PM
    How can you return compressed content (GZIP or Brotli) when generating HTML content directly in the Worker? I can't find anything about it in the documentation.
1...505152...2509Latest