22 Matching Annotations
  1. Sep 2024
    1. # booleans # simple: providing any value for ENV['FORCE_SSL'] means `true`: force_ssl = !!ENV['FORCE_SSL'] # more advanced: # only when we provide 'true' will `force_ssl` become true. force_ssl = ('true' == ENV['FORCE_SSL'])
  2. Aug 2023
    1. ```js / * .env.development VITE_API_URL=http://localhost:1337/api/blog-posts /

      / * .env.production VITE_API_URL=https://APP.herokuapp.com/api/blog-posts /

      import { error, type Load } from '@sveltejs/kit';

      import { VITE_API_URL } from '$env/static/private';

      export const load: Load = async () => { const res = await fetch(VITE_API_URL); const { data } = await res.json();

      if (res.ok) return { blogs: data }; throw error(404, 'Unable to fetch blogs'); }; ```

    1. ```toml type = "webpack" webpack_config = "webpack.config.js"

      these will be used in production

      vars = { WORKER_ENV = "production", SENTRY_ENABLED = true }

      [env.local]

      these will be used only when --env=local

      vars = { WORKER_ENV = "local", SENTRY_ENABLED = false } ```

      wrangler dev --env=local

  3. Apr 2023
  4. Jun 2021
  5. Apr 2021
    1. also trying to expand the secondhand market for Ikea products. It’s one of a growing number of brands to consider what’s called extended producer responsibility,

      -

    2. finding ways to incorporate more recycled material, including recycled fabric, into its products.

      -

    3. Some of the company’s stores are experimenting with furniture rental.

      -

    4. If someone returns an old bookcase or dresser instead of leaving it at the curb, they will be given a voucher for as much as half of the original price of the item, depending on the condition

      Env

    5. It’s one part of Ikea’s move to become a circular company over the next decade, meaning that everything it makes is designed to be reused, repaired, upgraded, or recycled, rather than ending up in a landfill.

      ENV

    6. Ikea is encouraging customers to bring back old furniture instead of buying more.

      -

  6. Nov 2019