Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

start-mode-config.ts

21 lines562 Bytes

1const FUNCTION_IDS: Record<string, Record<string, string>> = {
2 'src/routes/submit-post-formdata.tsx': {
3 greetUser_createServerFn_handler: 'submit-post-formdata-greetUser',
4 },
5 'src/routes/formdata-redirect/index.tsx': {
6 greetUser_createServerFn_handler: 'formdata-redirect-greetUser',
7 },
8}
9​
10export function getStartModeConfig() {
11 return {
12 serverFns: {
13 generateFunctionId: (opts: {
14 filename: string
15 functionName: string
16 }) => {
17 return FUNCTION_IDS[opts.filename]?.[opts.functionName]
18 },
19 },
20 }