Skip to content

Commit 1e180c4

Browse files
committed
chore: wip
1 parent 2b0edcd commit 1e180c4

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

config/errors.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { env } from '@stacksjs/env'
21
import type { ErrorConfig } from '@stacksjs/types'
32

43
/**

storage/framework/core/config/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ export const config: StacksOptions = {
1111
export const {
1212
ai,
1313
analytics,
14-
api,
1514
app,
1615
cache,
1716
cloud,
@@ -47,5 +46,7 @@ export const determineAppEnv = (): string => {
4746
if (app.env === 'staging') return 'stage'
4847
if (app.env === 'production') return 'prod'
4948

49+
if (!app.env) throw new Error("Couldn't determine app environment")
50+
5051
return app.env
5152
}

storage/framework/core/config/src/defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export default {
456456
description: 'Your function library description.',
457457
keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],
458458
shouldGenerateSourcemap: false,
459-
functions: ['counter', 'dark'],
459+
files: ['counter', 'dark'],
460460
},
461461
},
462462

storage/framework/core/vite-config/src/views.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export default defineConfig({
5656
'~/config/cloud': p.projectConfigPath('cloud.ts'),
5757
'~/config/database': p.projectConfigPath('database.ts'),
5858
'~/config/env': p.projectConfigPath('env.ts'),
59+
'~/config/errors': p.projectConfigPath('errors.ts'),
5960
'~/config/dns': p.projectConfigPath('dns.ts'),
6061
'~/config/docs': p.projectConfigPath('docs.ts'),
6162
'~/config/email': p.projectConfigPath('email.ts'),

storage/framework/types/auto-imports.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ declare global {
334334
const extendRef: typeof import('../core/utils/src/vendors')['extendRef']
335335
const extname: typeof import('../core/path/src/paths')['extname']
336336
const extractFieldsFromModel: typeof import('../core/orm/src/utils')['extractFieldsFromModel']
337+
const extractModelFromAction: typeof import('../core/router/src/utils')['extractModelFromAction']
338+
const extractModelRequest: typeof import('../core/router/src/utils')['extractModelRequest']
337339
const faker: typeof import('../core/faker/src/index')['faker']
338340
const fakerPath: typeof import('../core/path/src/paths')['fakerPath']
339341
const fathomWip: typeof import('../core/analytics/src/drivers/fathom')['fathomWip']
@@ -391,9 +393,11 @@ declare global {
391393
const getFolders: typeof import('../core/storage/src/folders')['getFolders']
392394
const getLastMigrationFields: typeof import('../core/database/src/migrations')['getLastMigrationFields']
393395
const getModelCustomizationJob: typeof import('../core/ai/src/utils/client-bedrock')['getModelCustomizationJob']
396+
const getModelName: typeof import('../core/orm/src/utils')['getModelName']
394397
const getNameservers: typeof import('../core/dns/src/drivers/aws')['getNameservers']
395398
const getRelations: typeof import('../core/database/src/seeder')['getRelations']
396399
const getSSRHandler: typeof import('../core/utils/src/vendors')['getSSRHandler']
400+
const getTableName: typeof import('../core/orm/src/utils')['getTableName']
397401
const getTypeName: typeof import('../core/types/src/helpers')['getTypeName']
398402
const gitPath: typeof import('../core/path/src/paths')['gitPath']
399403
const glob: typeof import('../core/storage/src/glob')['glob']
@@ -1341,6 +1345,8 @@ declare module 'vue' {
13411345
readonly extendRef: UnwrapRef<typeof import('../core/utils/src/vendors')['extendRef']>
13421346
readonly extname: UnwrapRef<typeof import('../core/path/src/paths')['extname']>
13431347
readonly extractFieldsFromModel: UnwrapRef<typeof import('../core/orm/src/utils')['extractFieldsFromModel']>
1348+
readonly extractModelFromAction: UnwrapRef<typeof import('../core/router/src/utils')['extractModelFromAction']>
1349+
readonly extractModelRequest: UnwrapRef<typeof import('../core/router/src/utils')['extractModelRequest']>
13441350
readonly faker: UnwrapRef<typeof import('../core/faker/src/index')['faker']>
13451351
readonly fakerPath: UnwrapRef<typeof import('../core/path/src/paths')['fakerPath']>
13461352
readonly fathomWip: UnwrapRef<typeof import('../core/analytics/src/drivers/fathom')['fathomWip']>
@@ -1391,9 +1397,11 @@ declare module 'vue' {
13911397
readonly getFolders: UnwrapRef<typeof import('../core/storage/src/folders')['getFolders']>
13921398
readonly getLastMigrationFields: UnwrapRef<typeof import('../core/database/src/migrations')['getLastMigrationFields']>
13931399
readonly getModelCustomizationJob: UnwrapRef<typeof import('../core/ai/src/utils/client-bedrock')['getModelCustomizationJob']>
1400+
readonly getModelName: UnwrapRef<typeof import('../core/orm/src/utils')['getModelName']>
13941401
readonly getNameservers: UnwrapRef<typeof import('../core/dns/src/drivers/aws')['getNameservers']>
13951402
readonly getRelations: UnwrapRef<typeof import('../core/database/src/seeder')['getRelations']>
13961403
readonly getSSRHandler: UnwrapRef<typeof import('../core/utils/src/vendors')['getSSRHandler']>
1404+
readonly getTableName: UnwrapRef<typeof import('../core/orm/src/utils')['getTableName']>
13971405
readonly getTypeName: UnwrapRef<typeof import('../core/types/src/helpers')['getTypeName']>
13981406
readonly gitPath: UnwrapRef<typeof import('../core/path/src/paths')['gitPath']>
13991407
readonly glob: UnwrapRef<typeof import('../core/storage/src/glob')['glob']>
@@ -2293,6 +2301,8 @@ declare module '@vue/runtime-core' {
22932301
readonly extendRef: UnwrapRef<typeof import('../core/utils/src/vendors')['extendRef']>
22942302
readonly extname: UnwrapRef<typeof import('../core/path/src/paths')['extname']>
22952303
readonly extractFieldsFromModel: UnwrapRef<typeof import('../core/orm/src/utils')['extractFieldsFromModel']>
2304+
readonly extractModelFromAction: UnwrapRef<typeof import('../core/router/src/utils')['extractModelFromAction']>
2305+
readonly extractModelRequest: UnwrapRef<typeof import('../core/router/src/utils')['extractModelRequest']>
22962306
readonly faker: UnwrapRef<typeof import('../core/faker/src/index')['faker']>
22972307
readonly fakerPath: UnwrapRef<typeof import('../core/path/src/paths')['fakerPath']>
22982308
readonly fathomWip: UnwrapRef<typeof import('../core/analytics/src/drivers/fathom')['fathomWip']>
@@ -2343,9 +2353,11 @@ declare module '@vue/runtime-core' {
23432353
readonly getFolders: UnwrapRef<typeof import('../core/storage/src/folders')['getFolders']>
23442354
readonly getLastMigrationFields: UnwrapRef<typeof import('../core/database/src/migrations')['getLastMigrationFields']>
23452355
readonly getModelCustomizationJob: UnwrapRef<typeof import('../core/ai/src/utils/client-bedrock')['getModelCustomizationJob']>
2356+
readonly getModelName: UnwrapRef<typeof import('../core/orm/src/utils')['getModelName']>
23462357
readonly getNameservers: UnwrapRef<typeof import('../core/dns/src/drivers/aws')['getNameservers']>
23472358
readonly getRelations: UnwrapRef<typeof import('../core/database/src/seeder')['getRelations']>
23482359
readonly getSSRHandler: UnwrapRef<typeof import('../core/utils/src/vendors')['getSSRHandler']>
2360+
readonly getTableName: UnwrapRef<typeof import('../core/orm/src/utils')['getTableName']>
23492361
readonly getTypeName: UnwrapRef<typeof import('../core/types/src/helpers')['getTypeName']>
23502362
readonly gitPath: UnwrapRef<typeof import('../core/path/src/paths')['gitPath']>
23512363
readonly glob: UnwrapRef<typeof import('../core/storage/src/glob')['glob']>

0 commit comments

Comments
 (0)