Comments (5)
Start a new pull request in StackBlitz Codeflow.
from nuxt.js.
To me it looks like ./
is prevented here:
nuxt/packages/schema/src/config/nitro.ts
Lines 18 to 20 in 161a1f1
baseURL: "."
does something – it changes all references to href="_nuxt/..."
– breaking all but the toplevel index.html page. A subpage, e.g. "mypage/otherpage/index.html" I believe should point at href="../../_nuxt/..."
, so I think I'm missing some other configuration here.
from nuxt.js.
I tried to roll with baseURL: "."
to at least get things going for the main page.
- There are warnings logged to the console that this is an invalid
baseURL
, so I'm again not sure what the correct approach to make relative builds is. - When deploying to an actual server in a subdirectory, the router seems to still assume absolute paths, so wherever I put the result besides a root URL, I always get "page not found: ".
![image](https://private-user-images.githubusercontent.com/2693840/359899950-06374c8e-4670-4e0d-9aea-24a29b66fd66.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2ODYwMjAsIm5iZiI6MTcyNDY4NTcyMCwicGF0aCI6Ii8yNjkzODQwLzM1OTg5OTk1MC0wNjM3NGM4ZS00NjcwLTRlMGQtOWFlYS0yNGEyOWI2NmZkNjYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTUyMjAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzExNTAwNWU3ZmVkNTRkNDVmZGFlOTAzN2IwNDljMTFiNmQ1OTFhZmQ1ZjE5MWFlYTM2YmQ0ODE3MTYyMWFmMCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.TpuVkVRllIY7a6gFGnbo03BhRgXZnBbwLEG5NeIhtwo)
from nuxt.js.
let's track in #28474 and #24390.
from nuxt.js.
Thank you for referencing those!
from nuxt.js.
Related Issues (20)
- routeRules proxy omits Content-Encoding header HOT 3
- Async/Await in router.options.ts with a nuxt composables breaks the app HOT 6
- Error deploying NUXT 3 application on IIS server
- Plugin types break if I add @nuxtjs/i18n to modules HOT 10
- useFetch doesn't convert Date to string HOT 4
- Add `#shared` alias
- Deploy production without node_modules directory HOT 2
- Server side useCookie problem HOT 1
- Potential Memory Leak HOT 4
- dynamic route is not found ! HOT 2
- Nuxt Plugin "provide" is not typed automatically since v3.13.0 HOT 7
- future: { compatibilityVersion: 4 } Messes up some types HOT 2
- serverDir not being registered HOT 3
- Client chunk too large with experimental.componentIslands.selectiveClient (to true) and @nuxt/client HOT 1
- runtime config in `.env` is not loaded in production HOT 2
- Error parsing JavaScript expression: Expecting Unicode escape sequence \uXXXX HOT 4
- Make server routes aware of page routes to avoid collisions HOT 1
- Nuxt middleware performs undefined behaviour when protecting routes HOT 2
- Property X does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{}>> HOT 2
- `useRoute.matched` is always returning 1 item - in future compatibilityVersion 4 HOT 1
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 nuxt.js.