SShortSingh.
Back to feed

Why saved video links break in published Replit apps and how to fix it

0
·13 views

A developer building Replit apps found that saving videos from pasted TikTok, YouTube, Instagram or X links works in preview but fails once published. Social platform links point to web pages rather than downloadable files, so fetching them returns HTML instead of video. Files written to a deployment's local disk are also lost, because autoscale deployments restart regularly and scale to zero when idle. The recommended approach is to convert the link into a real file and store it in Replit's App Storage, which is private and accessed through an SDK. For direct file URLs, the article shows how to stream content straight into storage, while page links require a downloader service that can be harder to maintain in production.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingHacker News ·

Memtest86 v9.10 adds NUMA support for multi-socket servers

A new release of the Memtest86 memory testing tool, version 9.10, has been published on GitHub. The update introduces support for NUMA, the non-uniform memory architecture used in multi-socket servers. The release was shared on Hacker News, where it drew modest early attention. The source material provides no further details on the specific changes or testing behavior in this version.

0
ProgrammingDEV Community ·

How to Tell if a Domain Is Still Active in Python: NXDOMAIN, NODATA and SERVFAIL

A DEV Community guide explains that checking a domain's A record only shows whether an IP address was returned, not why a lookup failed. It distinguishes NXDOMAIN (the name does not exist in DNS), NODATA (the name exists but has no address record), and SERVFAIL (the domain's DNS is broken), noting that none of these alone confirms registration. The author recommends querying RDAP, the registries' JSON successor to WHOIS, for the domains DNS cannot resolve, while warning that registry terms restrict high-volume automated use. A standard-library Python script using Cloudflare's DNS-over-HTTPS endpoint sorts a domain list into these states, and the post closes with a hosted option built by the author.

0
ProgrammingDEV Community ·

Developer Builds Personal Website into Microservice Platform with Polished Interface

A developer set out to create a personal website to showcase work and experiment with ideas, but the project grew into a microservice-based platform. The developer designed, built, deployed, and maintains the system independently, with an emphasis on a cohesive, intentional visual experience. Feedback from the developer community praised both the interface design and the underlying engineering. The architecture splits responsibilities across a Next.js frontend, a NestJS backend with Prisma, a separate authentication service using Firebase Admin SDK, and a Python FastAPI service for computer vision, all orchestrated with Docker Compose and Caddy.

0
ProgrammingDEV Community ·

Moving from Monoliths to Microservices: Key Trade-offs in Distributed Systems

The article explains that shifting from monolithic applications to microservices trades development simplicity for scalability and flexibility, a move that becomes necessary once a system outgrows a single server. It highlights the CAP theorem, noting that partition tolerance is mandatory in distributed systems so designers must choose between consistency and availability depending on the use case, such as payments versus social feeds. The piece covers operational challenges including service discovery, debugging across services via distributed tracing, and avoiding shared databases by adopting a database-per-service model with the Saga pattern for data integrity. It concludes that teams should not adopt microservices prematurely, recommending a modular monolith for small teams or products without clear scaling needs.