22 Matching Annotations
- Sep 2024
-
www.gertgoet.com www.gertgoet.com
-
# 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'])
-
- Aug 2023
-
-
```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'); }; ```
-
-
developers.cloudflare.com developers.cloudflare.com
-
stackoverflow.com stackoverflow.com
-
```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
-
- Apr 2023
- Jun 2021
-
gitlab.com gitlab.com
-
naildrivin5.com naildrivin5.com
-
It also makes it hard to centralize type coercions and default values.
-
-
It’s easy to create bugs because the environment is a somewhat degenerate settings database.
-
Most programming languages vend environment variables as strings. This leads to errors like so:
-
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
-
github.com github.com
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-
- Apr 2021
-
www.fastcompany.com www.fastcompany.com
-
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,
-
-
finding ways to incorporate more recycled material, including recycled fabric, into its products.
-
-
Some of the company’s stores are experimenting with furniture rental.
-
-
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
-
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
-
Ikea is encouraging customers to bring back old furniture instead of buying more.
-
-
- Nov 2019
-
github.com github.com
Tags
Annotators
URL
-