Directus + Gridsome
-
Hi folks. Wondering if anyone else has tried to use directus as a data source for a gridsome static site? I have been running into issues with "unauthorized request" using the gridsome-source-directus plugin and was wondering if this was some sort of issue specific to the Cloudron instance. I'm also asking the package maintainer.
-
Interested to follow this, maybe a useful link:
Be curious to see if Gatsby or Hugo could also be options?
-
@marcusquinn lol I was actually following that guide and encountered this error.
-
Not looked but maybe Bigcommerce provide sandbox accounts for API testing?
-
If you want to avoid AWS, Netlify.com offers free JAM stack hosting too.
-
@robi Correct me if I am wrong, but doesn't Netlify use AWS for their services?
Also Surfer is really an excellent alternative for JAMstack hosting that works well right here on Cloudron.
My use case was using GitLab runner to deploy static changes to Surfer and use something like Directus to manage blog posts.
-
@atrilahiji said in Directus + Gridsome:
@robi Correct me if I am wrong, but doesn't Netlify use AWS for their services?
They're a competitor AFAIK.
Also Surfer is really an excellent alternative for JAMstack hosting that works well right here on Cloudron.
I don't see how that's true alternative.
My use case was using GitLab runner to deploy static changes to Surfer and use something like Directus to manage blog posts.
Should work.
-
@robi oh I figured for static hosting it’s an alternative. Until we get something like openfaas on cloudron, Netlify is a good option. But for a static site with some dynamic content surfer + a headless cms works well and doesn’t require making a netlify account. You also have to pay to use a self hosted GitLab, which to me is already a minus on the side of netlify. Not saying it’s bad. Just that I personally don’t want to use it unless I can use my own GitLab. And even then I prefer the static hosting to be on my own server.
I do know their cloud functions are AWS lambda functions so I figured their hosting would just be S3 + Cloudfront or something
Either way this has greatly diverged from the original question I was asking.
-
@atrilahiji Not exactly the same use case but I am unable to authenticate with the (/auth/login) endpoint using Postman. Unfortunately the Directus docs and youtube channel are not very elaborate so I am hoping for any guidance here
(Please pardon my ignorance - self taught "dev" here
)
There is this
but its 3 + years old where the version used has totally different API endpoints + he uses another API testing tool for Mac...
Not sure what's wrong with my POST request
Line 287: **BOLD** if (!function_exists('create_unknown_project_app')) { /** * Creates a simple Application when the project name is unknown. * * @param string $basePath * @param array $config * @param array $values * * @return Application */ function create_unknown_project_app($basePath, array $config = [], array $values = []) { return create_default_app($basePath, $config, array_merge($values, [ 'notFoundHandler' => function () { return function () { **throw new UnauthorizedException('Unauthorized request');**
Based off of the error / line & function its advising it cant create a new project but what does that have to do with /auth/login?
I'm lost🥴 lol!! - let me know if this should be posted in Support or another post within this section
Any help is appreciated!