Fix /docs base URL showing localhost on deployed instances#100
Merged
Conversation
Switch Scribe from static-HTML to its `laravel` type so the docs page
renders at request time and its base URL resolves to the live APP_URL,
instead of the build-time value baked into static files.
- config/scribe.php: type=laravel, base_url='{{ config("app.url") }}',
add_routes=false, OpenAPI/Postman specs disabled; drop the obsolete
class_exists(AuthIn) guard
- composer: move knuckleswtf/scribe from require-dev to require (runtime
dependency); minimal lock change (9 packages moved dev->prod, no bumps)
- routes/web.php: serve /docs via Route::view('scribe.index'); remove the
old /docs -> /docs/index.html redirect
- Dockerfile.prod: drop the vendor-dev/docs stages, generate in the runtime
stage; generate against a sentinel base URL then inject the Blade
expression so example snippets and "Try It Out" host are dynamic too
- nginx.conf: route /docs through PHP; simplify index directive
- gitignore new generated paths; untrack the stale committed view that had
localhost baked in
- update dev docs compose service comment and CLAUDE.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #92. Switch Scribe from static-HTML to its
laraveltype so the docs page renders at request time and its base URL resolves to the live APP_URL, instead of the build-time value baked into static files.