Comments (3)
@estenssoros - Can you link me to where this is noted in the docs please? Because I'm thinking building and running an app are are two different steps. So, your env variable won't be available when running, only when building.
Scott
from app-extension-apollo.
sure! it's in the readme for the project https://github.com/quasarframework/app-extension-apollo/tree/v2 under Apollo Client options
.
GRAPHQL_URI=https://prod.example.com/graphql quasar build
GRAPHQL_URI=https://dev.example.com/graphql quasar dev
from app-extension-apollo.
OK i figured it out.
this needs to be added to quasar.conf.js
. otherwise, the environment variable won't be used in build
build: {
env: {
GRAPHQL_URI: ctx.dev ? '' : process.env.GRAPHQL_URI
},
}
from app-extension-apollo.
Related Issues (20)
- apolloClientBeforeCreate equivalent in v2? HOT 6
- Infinite loading on SSR HOT 5
- Quasar 2 + Apollo: Error: Apollo client with id default not found. Use provideApolloClient() if you are outside of a component setup HOT 9
- Extension v2 doesn't install due to @quasar/app dependency missing in quasar vite setup HOT 1
- this.$apollo returns `undefined` HOT 1
- installation breaks using vite HOT 4
- Error: Apollo client with id default not found. Use provideApolloClient() if you are outside of a component setup, in the q-dialog (modal) HOT 3
- Minor request HOT 1
- First call affter Page reload anytime gives me an undefined HOT 8
- HELP USING LIB HOT 7
- graphql-tag dependency issues HOT 2
- Apollo Client not compatible with Quasar II ? HOT 2
- Invalid Version: undefined Exception when installing HOT 2
- Error in Quasar ssr with @vue/apollo-composable HOT 6
- lient id
- @vue/apollo-composable HOT 2
- Quasar v2 ssr mode and apollo extension HOT 3
- [Quasar] boot error: SyntaxError: missing name after . operator HOT 2
- Add support for SSR
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 app-extension-apollo.