https://discord.cloudflare.com logo
Join Discord
Powered by
# wrangler
  • z

    zegevlier

    05/28/2023, 10:38 AM
    What exactly did you add?
  • l

    lokiwind

    05/28/2023, 10:38 AM
    because now I want to get better at wranglers.
  • l

    lokiwind

    05/28/2023, 10:38 AM
    Copy code
    routes = [
    
        { pattern = "https://domain.com/*", zone_id = "<zone_id>" }
    ]
    
    workers_dev = false
  • l

    lokiwind

    05/28/2023, 10:38 AM
    changed domain and zone id
  • z

    zegevlier

    05/28/2023, 10:40 AM
    Are you sure the domain and zone ID are correct? Did you re-upload the worker? Did you get any errors/warnings in the output of wrangler when you did that?
  • l

    lokiwind

    05/28/2023, 10:41 AM
    no. i edited this code and added it to the bottom line of the
    toml file
    and I ran the
    wrangler deploy
    code
  • z

    zegevlier

    05/28/2023, 10:43 AM
    Did you get any errors/warnings in the output of wrangler when you did that?
  • l

    lokiwind

    05/28/2023, 10:44 AM
    I will try again now
  • l

    lokiwind

    05/28/2023, 10:47 AM

    https://cdn.discordapp.com/attachments/799437470004412476/1112331341653094550/Screenshot_10.png▾

  • z

    zegevlier

    05/28/2023, 10:48 AM
    If you look on the dashboard now, do you see the route you configured there?
  • l

    lokiwind

    05/28/2023, 10:48 AM
    no 😦
  • z

    zegevlier

    05/28/2023, 10:49 AM
    Can you DM me your entire wrangler.toml file?
  • l

    lokiwind

    05/28/2023, 10:50 AM
    Off course
  • l

    lokiwind

    05/28/2023, 10:56 AM
    Thanks for the help @zegevlier Problem solved
  • z

    zegevlier

    05/28/2023, 10:56 AM
    Awesome! 😄
  • z

    zegevlier

    05/28/2023, 11:08 AM
    @lokiwind you'll want to keep that file in case you ever need to recreate the database or anything like that
  • l

    lokiwind

    05/28/2023, 11:11 AM
    I got it. so how can I apply the database I created with schema.sql to my worker
  • l

    lokiwind

    05/28/2023, 11:12 AM
    ie: when I run the wrangler deploy code, the information in the schema.sql code is not applied to my worker
  • z

    zegevlier

    05/28/2023, 11:12 AM
    Not automatically, no. You need to run a seperate command to do that
  • l

    lokiwind

    05/28/2023, 11:13 AM
    how can I access this command 🙂
  • l

    lokiwind

    05/28/2023, 11:13 AM
    wrangler d1 execute <DATABASE_NAME> --file=./schema.sql
  • l

    lokiwind

    05/28/2023, 11:14 AM
    Isn't that the code?
  • z

    zegevlier

    05/28/2023, 11:15 AM
    Yup, that's the command
  • l

    lokiwind

    05/28/2023, 11:15 AM
    Thank you again
  • b

    BBuubbaa

    05/28/2023, 6:32 PM
    hi, i have a (dumb) question: i'm not sure what exactly is the correct approach for the d1 configuration in the wrangler.toml and more precisely should the db name and id be clear text or should they be secrets?
  • c

    Cyb3r-Jok3

    05/28/2023, 6:41 PM
    It is fine to have in plain text. They are not sensitive just uuid4s
  • b

    BBuubbaa

    05/28/2023, 6:53 PM
    thank you
  • hello, kind of new in the game but it
    p

    plopix

    12/15/2023, 11:48 PM
    Ctrl-C or
    x
    does not change anything it stays on:
    Copy code
    .../node_modules/.pnpm/@cloudflare+workerd-darwin-arm64@1.20231030.0/node_modules/@cloudflare/workerd-darwin-arm64/bin/workerd serve --binary --experimental --socket-addr=entry=localhost:4242 --external-addr=loopback=localhost:57867 --control-fd=3 -
    a
    k
    • 3
    • 7
  • Could a `metafile` option be added to
    j

    JanPrisma

    12/19/2023, 8:00 PM
    That is a great suggestion. We "rebuilt" the esbuild options with plugins etc internally to get a similar enough file that we can use to analyze the bundle.
    k
    j
    • 3
    • 8
  • That sounds like you have a library
    t

    tarik_wpplumber

    01/05/2024, 5:23 PM
    In case I use
    --no-bundle
    it works under
    wrangler pages dev
    !