Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
yusukebe committed Sep 14, 2024
1 parent c620598 commit d097de9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/build/src/adapter/cloudflare-pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ROUTES_JSON_NAME = '_routes.json'

type StaticRoutes = { version: number; include: string[]; exclude: string[] }

const bunBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin => {
const cloudflarePagesBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin => {
let config: ResolvedConfig
const staticPaths: string[] = []

Expand Down Expand Up @@ -58,4 +58,4 @@ const bunBuildPlugin = (pluginOptions?: CloudflarePagesBuildOptions): Plugin =>
}
}

export default bunBuildPlugin
export default cloudflarePagesBuildPlugin
4 changes: 2 additions & 2 deletions packages/build/src/adapter/cloudflare-workers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import buildPlugin from '../../base.js'

export type CloudflareWorkersBuildOptions = BuildOptions

const nodeBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin => {
const cloudflareWorkersBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin => {
return {
...buildPlugin({
...pluginOptions,
Expand All @@ -13,4 +13,4 @@ const nodeBuildPlugin = (pluginOptions?: CloudflareWorkersBuildOptions): Plugin
}
}

export default nodeBuildPlugin
export default cloudflareWorkersBuildPlugin
2 changes: 1 addition & 1 deletion packages/build/test/cloudflare-pages.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { build } from 'vite'
import { describe, it, expect, afterAll } from 'vitest'
import cloudflarePagesPlugin from '../src/adapter/cloudflare-pages'

describe('cloudflarePagesPlugin', () => {
describe('Build Plugin with Cloudflare Pages Adapter', () => {
const testDir = './test/mocks/app-static-files'

afterAll(() => {
Expand Down

0 comments on commit d097de9

Please sign in to comment.