Comments (3)
Unfortunately we don't have support for working offline at the moment.
However one way to do this yourself would be to:
- create your own client which internally forwards calls to
@vercel/edge-config
if you want to work online - set up an environment variable like
OFFLINE=1
- make your own client check whether the env var if set
- if it is set, return values from a local json file instead
Note that you'd need to import the JSON file directly into your code as reading the file system is not possible from the edge runtime. This might end up in your production bundle if you are not careful though. Another alternative would be to start a local server during development and have your custom client fetch form there instead.
It's a bit manual but it should get you there most of the way.
I'm curious about your use case for working offline. Is it because you are traveling and don't have wifi?
I'll close this issue for now as we have offline support on the roadmap anyhow. But it will likely be a bit until we get around to it.
from storage.
Hi, thanks for the reply. Not only that a lot of us are on the road most of the time, we also need some flexibility around keys that would have different values depending on the task we're working on during local development e.g. api endpoints, auth audiences, etc
from storage.
#166 should help here. Once that lands it will allow supplying your own custom connection string. That way you can run a custom edge config server while working offline during development.
from storage.
Related Issues (20)
- Cannot use @vercel/blob in Edge runtime HOT 4
- Intermittent Request Failures with Vercel Postgres and Next.js HOT 6
- Vercel KV Request vs Storage Limit
- insert query are cached HOT 5
- @vercel/kv Inconsistent increment behavior in Server Action HOT 5
- @vercel/postgres: Extended constant is not working HOT 5
- [vercel/blob] file should use the true mime type when uploading the file HOT 3
- Vercel KV not reachable HOT 2
- @vercel/postgres parameters bind error HOT 1
- Vercel Postgres Polling & Revalidation on Focus HOT 5
- X-Frame-Options set to DENY prevents embedding PDF blob in object, embed or iframe HOT 3
- [blob] `downloadUrl` with additional expiration token or stream HOT 2
- [Blob] No response from the server HOT 5
- Downloads blocked based on user agent? HOT 3
- Vercel Blob onBeforeGenerateToken clientPayload Type issue? HOT 3
- `@opentelemetry/api` dependency on `@vercel/edge-config` breaks edge function
- `@vercel/edge-config` still breaks even if `@opentelemetry/api` is marked as peer deps HOT 7
- [@vercel/postgres] - Error: VercelPostgresError - 'invalid_connection_string' using drizzle orm HOT 2
- x-axis visibility issue for extended columns in postgres table HOT 1
- [@vercel/postgres] - Error: syntax error at or near "$1" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storage.