Skip to content

Commit

Permalink
pages dir
Browse files Browse the repository at this point in the history
  • Loading branch information
liorocks2 committed May 21, 2024
1 parent d0240da commit 8ca2f54
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/inertia.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

'page_paths' => [

resource_path('js/pages'),
resource_path('js/__pages__'),

],

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions resources/js/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ createInertiaApp({
title: title => `${title} - ${appName}`,
resolve: name =>
resolvePageComponent(
`./pages/${name}.tsx`,
import.meta.glob('./pages/**/*.tsx')
`./__pages__/${name}.tsx`,
import.meta.glob('./__pages__/**/*.tsx')
),
setup({ el, App, props }) {
const root = createRoot(el);
Expand Down

0 comments on commit 8ca2f54

Please sign in to comment.