Skip to content

Commit

Permalink
chore: middleware typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien-R44 committed Jun 2, 2024
1 parent e15289c commit 1e596b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions providers/vite_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { ApplicationService } from '@adonisjs/core/types'

import { Vite } from '../src/vite.js'
import type { ViteOptions } from '../src/types.js'
import ViteMiddleware from '../src/middlewares/vite_middleware.js'
import ViteMiddleware from '../src/middleware/vite_middleware.js'

declare module '@adonisjs/core/types' {
interface ContainerBindings {
Expand Down Expand Up @@ -66,7 +66,7 @@ export default class ViteProvider {
const server = await this.app.container.make('server')

await vite.createDevServer()
server.use([() => import('../src/middlewares/vite_middleware.js')])
server.use([() => import('../src/middleware/vite_middleware.js')])
}

/**
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/backend/provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import { IgnitorFactory } from '@adonisjs/core/factories'
import { test } from '@japa/runner'
import { defineConfig } from '../../index.js'
import ViteMiddleware from '../../src/middlewares/vite_middleware.js'
import ViteMiddleware from '../../src/middleware/vite_middleware.js'

const BASE_URL = new URL('./tmp/', import.meta.url)
const IMPORTER = (filePath: string) => {
Expand Down

0 comments on commit 1e596b7

Please sign in to comment.