Skip to content

Commit ecd4535

Browse files
committed
fix(command/dev): only ignore render path
1 parent aae07fe commit ecd4535

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
| Statements | Branches | Functions | Lines |
88
| --------------------------- | ----------------------- | ------------------------- | ----------------- |
9-
| ![Statements](https://img.shields.io/badge/Coverage-91.45%25-brightgreen.svg) | ![Branches](https://img.shields.io/badge/Coverage-71.93%25-red.svg) | ![Functions](https://img.shields.io/badge/Coverage-86.67%25-yellow.svg) | ![Lines](https://img.shields.io/badge/Coverage-92.24%25-brightgreen.svg) |
9+
| ![Statements](https://img.shields.io/badge/Coverage-91.3%25-brightgreen.svg) | ![Branches](https://img.shields.io/badge/Coverage-71.93%25-red.svg) | ![Functions](https://img.shields.io/badge/Coverage-86.67%25-yellow.svg) | ![Lines](https://img.shields.io/badge/Coverage-92.11%25-brightgreen.svg) |
1010

1111
This package allows to develop a nuxt SPA as frontend for a laravel backend.
1212
The implementation is based on [laravel-nuxt-js](https://github.com/skyrpex/laravel-nuxt-js) by [skyrpex](https://github.com/skyrpex).

dist/subcommands/dev.js

+1-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/subcommands/dev.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ const config: NuxtLaravelCommandConfig = {
102102
}
103103

104104
const renderRoot = (options.router && options.router.base) || ''
105-
const proxyPath = path.join(renderRoot, '**/*')
106-
const renderPath = path.join(renderRoot, `${argv['render-path']}`)
107105

108106
const overrides: typeof options = {
109107
// use @nuxtjs/proxy module
@@ -113,7 +111,7 @@ const config: NuxtLaravelCommandConfig = {
113111
// proxy all calls except the render path to laravel
114112
proxy: [
115113
[
116-
[proxyPath, `!${renderPath}`],
114+
['**/*', `!${path.join(renderRoot, `${argv['render-path']}`)}`],
117115
{
118116
target: `http://${options.server!.host}:${+options.server!
119117
.port! + 1}`,

0 commit comments

Comments
 (0)