Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ return new InertiaConfig(
/**
* Version resolver, if you use vite for example you probably want to use the default here,
* or you can add a custom one to maybe get from enviroment variables etc.
*
* default path: public/build/manifest.json
*/
versionResolverClass: ManifestVersionResolver::class,
versionResolver: new ManifestVersionResolver(),
/**
* Props that should be included in "all" requests, the default is errors and the authenticated user
*/
Expand Down
193 changes: 130 additions & 63 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/Contracts/InertiaVersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

namespace NeoIsRecursive\Inertia\Contracts;

use Tempest\Container\Container;

interface InertiaVersionResolver
{
public function resolve(): string;
public function resolve(Container $container): string;
}
Loading