Skip to content

Commit

Permalink
remove experimental warning from dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Jan 18, 2024
1 parent fb7ad4f commit e9192a7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/api-server/src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import fs from 'fs'
import path from 'path'

import c from 'ansi-colors'
import chalk from 'chalk'
import chokidar from 'chokidar'
import dotenv from 'dotenv'
import { debounce } from 'lodash'
Expand Down Expand Up @@ -130,21 +129,8 @@ const buildAndRestart = async ({

// Start API server

// Check if experimental server file exists
const serverFile = resolveFile(`${rwjsPaths.api.dist}/server`)
if (serverFile) {
const separator = chalk.hex('#ff845e')(
'------------------------------------------------------------------'
)
console.log(
[
separator,
`🧪 ${chalk.green('Experimental Feature')} 🧪`,
separator,
'Using the experimental API server file at api/dist/server.js',
separator,
].join('\n')
)
httpServerProcess = fork(serverFile, [], forkOpts)
} else {
httpServerProcess = fork(
Expand Down

0 comments on commit e9192a7

Please sign in to comment.