Comments (6)
BTW: just tested the NuxtJS example version, and it works beautifully.
from examples.
That's true! Actually it initially stemmed from we weren't providing the local directus instance so it may not be localhost:8055, hence the attempt at making it easier to configure via .env files.
Ahh good one, yeah!
from examples.
I haven't tested it locally (yet), but from the codebase it should set the base url for directus to 8055 here:
pulled in from the .env
here:
from examples.
@jjaimealeman This seems to work as expected on my end! Did you change the value in .env
by any chance?
Steps I took (with the demo Directus instance running):
cd vue
npm install
cp .env.example .env
npm run dev
(That reminds me @azrikahar, we could drop the requirement on the .env
files in favor of just hardcoding the example localhost:8080
, but i'll leave that up to you 👍🏻 )
from examples.
I'll close this for now, as I believe this works as expected. Lemme know if I'm missing anything @jjaimealeman 🙂
from examples.
This seems to work as expected on my end!
Works on my end as well! I believe it is indeed VITE_DIRECTUS_URL
not loading (somehow) for OP since it's showing :3000
in the screenshot instead.
we could drop the requirement on the
.env
files in favor of just hardcoding the example
That's true! Actually it initially stemmed from we weren't providing the local directus instance so it may not be localhost:8055
, hence the attempt at making it easier to configure via .env
files. 😄
from examples.
Related Issues (20)
- Add an example with Quasar Framework HOT 3
- Directus Examples: Integrations HOT 3
- CORS Issue with React Example and Directus Cloud HOT 2
- Install error on examples/nuxt3/nuxt3-directus-blog/ HOT 2
- useAsyncData example for static generation HOT 2
- Sveltekit example out of date. HOT 3
- SQLITE_ERROR: table directus_sessions has no column named origin HOT 1
- Astro example is broken HOT 1
- More than one instance … HOT 2
- NextJS Example doesn't work HOT 2
- Docker directus example and git workflow database HOT 2
- Cannot query field "directus" on type "Query". HOT 1
- Cors Error HOT 2
- Astro Example: You don't have permission to access this. HOT 3
- Vue example doesn't work - fails with CORS error HOT 2
- NextJS example needs updates HOT 1
- Vue example doesn't work - docker-compose file is invalid HOT 1
- New Sveltekit example
- Astro example isn't working HOT 1
- website-next13 - can't be build -
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 examples.