2.1.1 • Published 4 months ago

@solid-mediakit/prpc-plugin v2.1.1

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

@solid-mediakit/prpc-plugin

A Vite plugin for pRPC

Installation

pnpm install @solid-mediakit/prpc-plugin

Add to app.config.ts

Wrap your entire config with the withPRPC method for typesafety:

import { withPRPC } from '@solid-mediakit/prpc-plugin'

const config = withPRPC(
  {
    ssr: true,
  },
  {
    auth: 'authjs',
    authCfg: {
      source: '~/server/auth', // where your AuthJS config is located
      configName: 'authOpts', // The variable name of your AuthJS Config
      protectedMessage: 'You need to sign in first',
    },
  },
)

declare module '@solid-mediakit/prpc' {
  interface Settings {
    config: typeof config
  }
}

export default config
2.1.1

4 months ago

2.1.0

8 months ago

2.0.0

9 months ago

1.3.4

12 months ago

1.3.3

12 months ago

1.3.2

12 months ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago