Skip to content

Commit 076c615

Browse files
committed
Remove development-only Vite variables
1 parent c608193 commit 076c615

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

.env.local.secret

-26 Bytes
Binary file not shown.

.env.playwright.secret

-27 Bytes
Binary file not shown.

.env.template

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ PUBLIC_SENTRY_PROJECT_ID=
1616

1717
PROJECT_NAME=code-snippet-sharing
1818

19-
VITE_DEV_HOST=localhost
20-
VITE_DEV_PORT=3000
21-
VITE_PREVIEW_PORT=3000
22-
2319
POSTGRES_DATA_VOLUME_NAME=postgres-data-development
2420

2521
## Development and production

.gitsecret/paths/mapping.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
.env.local:102adc6306f87e5f75303283aaefcd3da969f605b77df8a33c6c5842ea6c133f
2-
.env.playwright:ae1afa4ec916e6c9ce9476856be19236d9f664512aba3d24e2df0ea14e210cbd
1+
.env.local:abbe9da718d9249cfa0b265678517b558b7fbe9f67c38ad714e2f0d9da51c63e
2+
.env.playwright:cc88f3266a590b9cd526fc40bb2dfd415fa65fc19ebaa7396a342dd10a137567

scripts/stack/_lib/actions.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ export async function startLocalApp() {
136136
await sleep(5000);
137137

138138
try {
139-
await waitUntilServiceIsAvailable(
140-
`http://localhost:${process.env['VITE_DEV_PORT']}`,
141-
);
139+
await waitUntilServiceIsAvailable('http://localhost:3000');
142140
} catch (error) {
143141
console.error(error);
144142
console.error(`app (local): failed`);
@@ -332,7 +330,7 @@ export function stopLocalApp() {
332330
try {
333331
console.log('app (local): stopping');
334332
const appPid = execSync(
335-
`ss -lnp | grep :${process.env['VITE_DEV_PORT']} | sed 's/.*pid=\\(.*\\),.*/\\1/g'`,
333+
`ss -lnp | grep :3000 | sed 's/.*pid=\\(.*\\),.*/\\1/g'`,
336334
{ env: process.env },
337335
)
338336
.toString()

scripts/stack/local/infra/_lib/constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ export const MANDATORY_ENV_VARS = [
22
'PROJECT_NAME',
33
'POSTGRES_DATA_VOLUME_NAME',
44
'DATABASE_URL',
5-
'VITE_DEV_PORT',
65
];
76
export const DOCKER_COMPOSE_FILES = ['docker-compose.local.infra-only.yml'];

vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export default defineConfig(({ mode }) => {
1717
minify: 'esbuild',
1818
},
1919
server: {
20-
host: env['VITE_DEV_HOST'] ?? 'localhost',
21-
port: parseInt(env['VITE_DEV_PORT'] ?? '') || 5173,
20+
host: 'localhost',
21+
port: 3000,
2222
strictPort: true,
2323
},
2424
preview: {
25-
port: parseInt(env['VITE_PREVIEW_PORT'] ?? '') || 4173,
25+
port: 3000,
2626
},
2727
plugins: [
2828
...getWrappedSentrySvelteKitPlugin(mode, env),

0 commit comments

Comments
 (0)