-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrpx.config.ts
More file actions
48 lines (43 loc) · 1.17 KB
/
rpx.config.ts
File metadata and controls
48 lines (43 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import type { ProxyOptions } from '@stacksjs/rpx'
import os from 'node:os'
import path from 'node:path'
const config: ProxyOptions = {
https: {
// Custom SSL settings for better browser compatibility
domain: 'rpx.localhost',
hostCertCN: 'rpx.localhost',
altNameIPs: ['127.0.0.1', '::1'],
altNameURIs: ['localhost'],
organizationName: 'RPX Development',
countryName: 'US',
stateName: 'California',
localityName: 'Local Development',
commonName: 'rpx.localhost',
validityDays: 825, // Longer validity for development
subjectAltNames: [
{ type: 2, value: 'rpx.localhost' },
{ type: 2, value: '*.rpx.localhost' },
{ type: 2, value: 'localhost' },
],
// Use standard paths that are easier to manage
basePath: path.join(os.homedir(), '.stacks', 'ssl'),
},
cleanup: {
hosts: true,
certs: false,
},
proxies: [
{
from: 'localhost:5173',
to: 'rpx.localhost',
cleanUrls: true,
start: {
command: 'bun run dev:docs',
// lazy: true,
},
},
],
vitePluginUsage: false,
verbose: true, // Enable verbose mode for better debugging
}
export default config