Cannot connect to server: websocket error, yet I only have static files. #5700
-
I have the error: My application is a simple frontend application (static files only) with no backend. I am exporting my frontend static files in my dockerfile as follows: # Download other npm dependencies and compile frontend
RUN REFLEX_API_URL=${REFLEX_API_URL:-http://localhost:$PORT} reflex export --loglevel debug --frontend-only --no-zip && mv .web/build/client/* /srv/ && rm -rf .web This was working a few months ago - I think when reflex was using Next.js My rx.confg """
rxconfig.py contains the configuration for Reflex.
"""
import reflex as rx
from reflex.constants.base import LogLevel
config = rx.Config(
app_name="app",
show_built_with_reflex=False,
cors_allowed_origins=["*"],
telemetry_enabled=False,
frontend_port=3000,
# Do not change the loglevel from info. The build will fail!
loglevel=LogLevel.INFO,
db_url=None,
is_reflex_cloud=False,
deploy_url="https://my-website.com",
plugins=[
rx.plugins.SitemapPlugin(),
],
) Any help will be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
In https://github.com/reflex-dev/reflex/releases/tag/v0.8.3 we disabled automatic stateless app detection, you can opt in to stateless app through |
Beta Was this translation helpful? Give feedback.
In https://github.com/reflex-dev/reflex/releases/tag/v0.8.3 we disabled automatic stateless app detection, you can opt in to stateless app through
rx.App(enable_state=False)