gatsby build 出来的访问目录是否可以更改

Created on 4 Apr 2019  ·  3Comments  ·  Source: gatsbyjs/gatsby

比如这个

All 3 comments

Hey, I used google translate to try to understand what do you mean - so I hope this is correct.

For the first one:
<script src="https://s1.aaa.com/app-22adb05f700e9fcdf5a5.js" async=""> - right now this is not possible - we are working on support for that - see https://github.com/gatsbyjs/gatsby/pull/12128 . There you can define assetPrefix, but you would need use test release of gatsby as described by Dustin in https://github.com/gatsbyjs/gatsby/pull/12128#issuecomment-477679398

The second one:
<script src="/a/test/app-22adb05f700e9fcdf5a5.js" async=""> - you should be able to use Path Prefix ( https://www.gatsbyjs.org/docs/path-prefix/ ) - just note that this will change not only paths to scripts and assets - but also change the paths of pages

感谢,你的回答很赞,已经解决

Seems like the issue is resolved 👍
Closing this then :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

benstr picture benstr  ·  3Comments

rossPatton picture rossPatton  ·  3Comments

signalwerk picture signalwerk  ·  3Comments

kalinchernev picture kalinchernev  ·  3Comments

Oppenheimer1 picture Oppenheimer1  ·  3Comments