Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset URLs are incorrect when Laravel is running in a subdirectory #733

Open
1 task done
Jamesking56 opened this issue Sep 18, 2023 · 2 comments
Open
1 task done
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Jamesking56
Copy link

Scribe version

4.24.0

PHP version

8.2

Framework

Laravel

Framework version

10.15.0

Scribe config

title => "API Documentation"
base_url => "http://localhost"
type => "laravel"
laravel.docs_url => "/api/docs"
try_it_out.enabled => false
try_it_out.base_url => "http://localhost"
auth.enabled => true
auth.default => true
auth.name => "token"
auth.placeholder => "{YOUR_TOKEN}"

What happened?

When Laravel is running in a subdirectory, Scribe generates documentation with no CSS or JS working due to the fact that is expects /vendor is accessible.

I think one way to fix this would be to offer a way to use a CDN for assets rather than having them live in Laravel.

Docs

@Jamesking56 Jamesking56 added bug Something isn't working triage labels Sep 18, 2023
@shalvah shalvah removed the triage label Sep 29, 2023
@shalvah
Copy link
Contributor

shalvah commented Sep 29, 2023

Ah, I don't know. Can you send a fix for this? It's not a use case I (or many users, apparently) work with.

@shalvah shalvah added the help wanted Extra attention is needed label Sep 29, 2023
@ccec1t91077
Copy link
Contributor

@Jamesking56 Hi, can you share a simplified nginx config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants