NEW YORK — Blue Apron is cutting about 320 jobs, less than four months after the meal-kit seller became a public company.

New York-based Blue Apron, which had nearly 5,400 employees in June, said Wednesday the layoffs represent about 6 percent of its workforce. The company says the cuts were at its corporate offices and warehouses where its meal kits are packed and shipped.

Blue Apron has been facing increasing competition. Amazon, which recently bought Whole Foods, is testing its own meal kits. And supermarket Albertsons recently bought rival Plated and plans to sell kits at its 2,300 stores. Shares of Blue Apron have lost nearly half their value.