Got rid of nextjs telemetry. (#274)
This commit is contained in:
parent
06aa58c517
commit
acb2a16d5a
@ -15,7 +15,7 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from subprocess import PIPE
|
from subprocess import PIPE, DEVNULL, STDOUT
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import _GenericAlias # type: ignore
|
from typing import _GenericAlias # type: ignore
|
||||||
from typing import (
|
from typing import (
|
||||||
@ -527,6 +527,15 @@ def run_frontend(app: App, root: Path):
|
|||||||
# Run the frontend in development mode.
|
# Run the frontend in development mode.
|
||||||
console.rule("[bold green]App Running")
|
console.rule("[bold green]App Running")
|
||||||
os.environ["PORT"] = get_config().port
|
os.environ["PORT"] = get_config().port
|
||||||
|
|
||||||
|
subprocess.Popen(
|
||||||
|
[get_package_manager(), "run", "next", "telemetry", "disable"],
|
||||||
|
cwd=constants.WEB_DIR,
|
||||||
|
env=os.environ,
|
||||||
|
stdout=DEVNULL,
|
||||||
|
stderr=STDOUT,
|
||||||
|
)
|
||||||
|
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
[get_package_manager(), "run", "dev"], cwd=constants.WEB_DIR, env=os.environ
|
[get_package_manager(), "run", "dev"], cwd=constants.WEB_DIR, env=os.environ
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user