question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Is there a way to build with relative paths?

See original GitHub issue

By default, Gridsome loads all assets from the absolute root of my site. I can add pathPrefix to move that to a subfolder (e.g. mysubfolder), but all assets are still loaded from an absolute url: /mysubfolder/....

Is there a way to have Gridsome to load relative paths? (also all of Gridsome’s assets and css)?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

17reactions
Spica2commented, Aug 26, 2019

+1

4reactions
tiptroniccommented, Mar 24, 2020

Hi @OliPerraul Yes - I used another framework 😃

I am really bored, if basic functionality is ignored and they try to sell it as ‘feature’…

I like Gridsome pretty much, but I simply don’t have to fight for such a basic thing… -> I’m back, when it works… (if ever)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with relative paths in out of source build?
I have a project which contains relative paths to some resource files, needed at runtime, which are located close to the source directory....
Read more >
reactjs - Relative path in index.html after build - Stack Overflow
When I use "." or "./" I can see that all the paths now have a dot at the beginning, but it seems...
Read more >
Absolute and Relative Paths - YouTube
This video is part of the Udacity course "Linux Command Line Basics". Watch the full course at https://www.udacity.com/course/ud595.
Read more >
How to solve vue.js prod build assets relative path problem
I installed the Visual Studio Code and opened the project and looked into the folders and files. I compiled the project using the...
Read more >
Relative and absolute paths, in the file system and on the web ...
If you don't supply the root, it means that your path is relative. The simplest example of relative path is just a file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found