gridsome | ⚡️ The Jamstack framework for Vue.js | GraphQL library
kandi X-RAY | gridsome Summary
kandi X-RAY | gridsome Summary
⚡️ The Jamstack framework for Vue.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gridsome
gridsome Key Features
gridsome Examples and Code Snippets
Community Discussions
Trending Discussions on gridsome
QUESTION
I have this specific use case that I'm trying to solve with Firebase Hosting and it's the following:
- I'm using Gridsome to generate static websites
- Before building, Gridsome uses Graphql and grabs from a Headless CMS some blog posts, which then are used to create static pages for each of them
- Currently, the Gridsome build is automatically deployed to Firebase Hosting whenever I merge into master through Github (this works great already)
The problem that I'm facing is that I want to trigger a Gridsome build + Firebase Hosting deploy whenever I publish a new blog post on my Headless CMS (It has the option to make a POST on new blog post). I know this is possible on other solutions like Vercel, but right now I'm using Firebase and would like to stick to the suite.
I've tried using the REST API without any luck, and Github Webhooks works the other way around and doesn't solve my problem. I'm thinking there might be a chance to call a Firebase function and use the CLI to deploy or something.
What I would like to know is if this feature exists and how to accomplish this scenario.
Thanks.
...ANSWER
Answered 2021-Apr-03 at 21:26I assume you use Github Actions to build your project and then deploy it to firebase.
The easiest solution that I would recommend for you is to set up your Action to trigger not only on a push into your master branch, but also for a request.
StepsSet your Action trigger for the repository_dispatch
Event
QUESTION
The calendly widget works at first, but if you refresh the page it stops working but only when the website is live. In local development, no such issue occurs.
Also noticed that when I route to the page through navigation, it works. But if I enter the link to the specific page directly, it doesn't work.
Here's the code:
...ANSWER
Answered 2021-Feb-22 at 17:14From this link, we can see that he is importing the component with
QUESTION
I am using Gatsby Plugin sharp with other plugins for remark images. Package json provided below.
Strangely the build goes through fine on MacOS but fails inside the Debian docker container while try to fetch metadata for a PNG image. This error is faced by gatsby-plugin-sharp
package.json - only dependencies included
...ANSWER
Answered 2021-Feb-12 at 10:22Ended up solving this - Leaving the cause of issue here so that it can help others - I was using a NodeJS - 15.8.0-slim base image. Gatsby Plugin Sharp is dependent on C libraries and binaries behind the scenes which were not really included in the Slim base image. I used 15.8.0-buster image and it worked all good.
The log was extremely misleading and ended up wasting a lot of my time. Hope this saves the time of anyone else who ends up with this.
QUESTION
I have a proprietary file format that I'd like to use in my Gridsome website, with each of these files generating a new page. As I understand it, that's exactly what you can use a Transformer for. However, no plugin exists for a Transformer of the file type I'm using. Is it possible to create your own Transformer for private use?
I've first tried simply adding the source-filesystem
plugin, but that gives me the error: No transformer for 'application/myformat' is installed.
ANSWER
Answered 2021-Feb-05 at 16:45Alright, I was able to figure this out, but it still seems like there must be a simpler way.
In a separate project directory, I ran npm init
to create the bare minimum package.json
(my Transformer had no other dependencies, you'll have to include them here if yours does).
I then added my Transformer class as follows in the "main" class I specified in package.json
:
QUESTION
ANSWER
Answered 2020-Oct-06 at 12:52Use the /static directory of Gridsome and rebuild your project All files in this directory will be copied directly to your dist during build.
After you can change your import function to :
QUESTION
I have an issue with plugin-google-analytics https://github.com/gridsome/gridsome/blob/master/packages/plugin-google-analytics/README.md
when i put my Google Analytics tracking Id in gridsome.config.js it do nothing on Google Analytics plateform. Same after two days. i upload all my files on server but never show up.. What i missed?
...ANSWER
Answered 2020-Oct-29 at 17:25That plugin you mentioned works with the Universal version of Google Analytics (which is what has the ids in the format UA-XXXXXXXXX-X
), like the example in your link:
QUESTION
Im using Gridsome frame work for VUE JS
I am navigating to a new page by using this.$router.push(PATH, PARAMS)
ANSWER
Answered 2020-Oct-29 at 17:14Pass name
rather than path
in this.$router.push()
QUESTION
I have a page transition for VUE js that I have implemented. I did this manually because I could not find how to do this using VUES transition.
(I am using gridsome framework for vue js - I have added a custom App.vue page - which should allow transitions of gridsome to act like normal Vue js transitions)
I feel like what I have done is bloated for its use case so wanted to see if anyone knew how to implement this using vue transtions.
...ANSWER
Answered 2020-Oct-26 at 11:13If you wrap .leave-screen
in a transition
element you can do something like this:
QUESTION
I am using Gridsome (Vue static site generator with Vue Router) and I've created a preloader in index.html, its a simple div that covers everything. In index.html I also added this JS code to hide the preloader when everything loads
...ANSWER
Answered 2020-Aug-17 at 14:38you can use vuex with this case.
first, add your state src/main.js
QUESTION
I'm using @gridsome/source-filesystem
with this config:
ANSWER
Answered 2020-Aug-14 at 13:45If you want to just add allTags
, you can create markdown for it.
in gridsome.config.js
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gridsome
The future of the web is JavaScript, API's, and Markup - the Jamstack. Gridsome uses the power of blazing-fast static site generator, JavaScript and APIs to create stunning dynamic web experiences.
npm install --global @gridsome/cli
yarn global add @gridsome/cli
pnpm install --global @gridsome/cli
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page